With C# 4.5 going RTM in the next few months, I'm looking forward to the new features (particularly async and await). There are a few small features that I really wish they had added even though It would be safe to say at this point C# is "baked".
1. String interpolation
//this is much cleaner than the hideous string.format()
var stringWithVariableInit = "some variable in of the @( variableSetSomePlaceElse )";
2. Implicit typing on return values
public var Fly(){
return new List<RecordedPoints>();
}
This would be a minor feature and can still be done with generics, but as great as generics are, they can make the code quite noisy (implicit casting has improved this greatly)
Maybe we will see some of these features when project Roslyn is complete and MS or someone else will extend the compiler to support them. Project Roslyn will likely bring some other really nice features like metaprogramming
No comments:
Post a Comment