by Maarten88 · 11y ago · 0 comments
To me, as a C# dev, this proposed change seems rather quick (let C#6 get some use first) and it also seems not consistent with nullable value types: with a reference type you'll get a compiler warning where the same error on a value type will give an error.
Not really. The non-nullable references feature request has been on the radar for many years. (E.g. this July 2009 stackoverflow post[1]). There are also some very old MS channel9 videos where Anders Hejlsberg acknowledged that the community wants this safety feature and discusses the difficulties of implementing it. I don't have a link to the video but this 2008 stackoverflow post mentions a Computerworld interview on the topic.[2]
Non-nullable references is not a shoot-from-the-hip feature addition, and the C# team has been thinking about it for a very long time
[1]http://stackoverflow.com/questions/411906/c-sharp-net-design...
What would you have the language designers do? Wait two years before even thinking about what to work on next?