A quick overview of some of the new language features coming to C# 7.0.
5 Comments on "New Features in C# 7.0"
Unless this has changed in the release version (I hope it hasn't) than it seems there is a mistake within pattern matching example where the variable 'i' is used outside its if level scope. The roslyn pattern matching spec says:
The scope of a pattern variable is as follows:
– If the pattern appears in the condition of an if statement, its scope is the condition and controlled statement of the if statement, but not its else clause.
If this is correct than the i variable should not be in scope after the if.
Good, but looks like baby steps towards being a more functional language. I still can’t understand what good are these features without things like records or algebraic data types. I guess time will tell.
Why would Item start at 1 and not 0?
Magnificent, I realized that I have to add the System.ValueTuple nuget reference, any other in any case?. Is there any issue deploying to the store with all the new stuff? Hope not.
In CodeChannels.com, you can learn to code by watching videos and stay up to date with latest code shows, events and tutorials aggregated from various leading developer communities.
Copyright 2016 By CodeChannels.com All rights reserved.