6 ms·
Do you know how they're solving the problem of the language expecting a `default(T)` to exist for every type?
by qu4z-2 8y ago
Do you know how they're solving the problem of the language expecting a `default(T)` to exist for every type?
- masklinn 8y agoYou can get a pretty complete overview at https://blogs.msdn.microsoft.com/dotnet/2017/11/15/nullable-reference-types-in-csharp/ https://blogs.msdn.microsoft.com/dotnet/2017/11/15/nullable-... But essentially they're not solving it: you will get a warning on explicit default-ing of a non-nullable reference, you will get a warning on implicitly initialising/defaulting class fields, but you will not get warnings when doing so for structs or arrays.
- qu4z-2 8y agoThanks. That looks quite interesting.