Hacker News new | ask | show | jobs
by mrkeen 741 days ago
> I can’t remember the last time I encountered one by using the proper compile time checks.

When you're sufficiently careful, you can reduce accidental nulls down to the level of minor inconvenience.

But no amount of care on your part will stop your teammates from deliberately using nulls.

1 comments

Code reviews usually help to stop that.
It's too embedded in the culture.

Even IntelliJ right now will tell you off for using an Optional field instead of a nullable one.