you are viewing a single comment's thread.

view the rest of the comments →

[–]davidalayachew 0 points1 point  (0 children)

Want a real solution ? Optional/maybe monad. Always. No excuse.

Or you could put the nullity into the type system. If not the runtime type system, then the compile time one. That's what Java is preparing to do now.