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

I totally disagree - NULL gives much worse ergonomics all-around. While modifying code, I'm constantly afraid of whether the value I'm accessing could be NULL. Most SQL schemas are filled with "NOT NULL" to the point of ridiculousness, and most Java methods that I've seen tend to have @NotNull used everywhere too. Not having NULL gives you a lot of confidence when reading and writing code, by guaranteeing that your object does indeed exist.


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

Search: