You are viewing a single comment's thread from:

RE: Nifty and useful features in C# 7

in #csharp7 years ago

c#7 was a nice improvement although the pattern matching is too verbose for my liking. Would have been nice to have something like ML/Haskell. But guess it fits better with the language as it stands.

C# 8 will be interesting depending on which way they jump with non nullable reference types.

Sort:  

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.

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.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 56160.19
ETH 2367.48
USDT 1.00
SBD 2.31