I think the coolest thing coming out of C# 8.0 is the nullable stuff. Compiler will warn you if you use a variable that could be null if you don't check for it https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8#nullable-reference-types …
-
Show this thread
-
-
Replying to @mcclure111
Yeah, so by default reference types are "not nullable" and you can mark a value as "has the potential to be null"
2 replies 0 retweets 0 likes -
Replying to @NoelFB @mcclure111
(I think this whole system is opt-in, so older projects don't just totally explode)
1 reply 0 retweets 0 likes -
Replying to @NoelFB @mcclure111
I'm not an expert in the current nullable implementation, but how is this one different?
1 reply 0 retweets 0 likes -
Replying to @AxiomVerge @mcclure111
Currently all reference-types are nullable. The new system means that, by default, reference-types are non-nullable, but you can make them nullable with ? (like you do with structs now) This way the compiler can warn you about using a thing that COULD be null if you didn't check
1 reply 0 retweets 5 likes
Okay got it, was not fully awake yet
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.