RE: Nifty and useful features in C# 7

You are viewing a single comment's thread from:

Nifty and useful features in C# 7

in csharp •  7 years ago 

Yes, I agree, it's somewhat verbose. There is always F# if you want the sleeker syntax :D

There will be interesting to see how they solve it, non nullable reference types is a really welcoming addition to the language.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

It looks like the breaking change is winning, which I prefer

Not nullable
MyObjVar var = new MyObjVar();

Nullable
MyObjVar? var = null;

This needs to be enabled though to work that way for backwards compatibility. It is also a comppile layer, behind the scene they will still be nullable

Yep F# is epic

Same syntax as nullable value types is great.