News for hackers. Stuff that matters.
Re:Why nullable types? by creata on Tuesday December 08, 2020 @05:07PM (#25352038)
Yeah, it is a rare problem, but it's not that rare when writing anything generic. For example, look at all the special-casing of null (ctrl-f "null") in the Java HashMap docs.[0] All of that would immediately go away if they didn't have null.

[0]: https://docs.oracle.com/javase/8/docs/api/java/util/HashMap....

There are no comments on this comment yet.