Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's actually a good point. I made assumptions about the meaning of the term `null` that can't be true in every language that uses it.

There are some exceptions to the behaviour you describe, like for instance with C# which for the longest time only allowed value types to be annotated as nullable, and only very recently extended this to reference types, and only as an opt-in feature, and the type checker only throws warnings, etc. That would be a case of a language which is not "null safe" but provides faculties for accomplishing that.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: