Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Isn't the idea that null is a big mistake inherently tied to the idea that as much as possible should be checked / verified during compilation rather than during runtime? "The alternatives always come down to providing an answer that is sometimes wrong" - how so? is a statically checked Optional that forces you to check for lack of value or else it yells at you during compilation an answer that it sometimes wrong? It seems to be similar to a null in the sense that is sometimes has an answer and sometimes doesn't have. When can this answer be wrong? Commented May 3, 2021 at 8:10
  • NB: My questions are not rhetorical, I'd very much like to see answers to them :) Commented May 3, 2021 at 8:11
  • @gaazkam I really like tools that check for null testing at compile time. That doesn't mean null shouldn't exist, though. Commented May 3, 2021 at 15:27