Skip to content

re: What is today's "goto"? VIEW POST

re: null. The concept of "there is no value" is necessary, but the implementation of null as a pointer to nowhere is very problematic in most languages...

I agree that nothingness needs to have some sort of representation (even typed nothingness), but null is definitely not the way to do it. Tony Hoare introduced the concept in ALGOL 65 because it was easy, but he's since said it was his billion dollar mistake. I think that may be an underestimation, honestly. I'm definitely looking forward to C# adopting Nullable for reference types in the near future, and I definitely lean towards Maybe/Option. Thanks for the comment!

code of conduct - report abuse