Hacker News new | ask | show | jobs
by Dylan16807 521 days ago
Null is not your value that the database is making assumptions about, it's the database's value that you are making assumptions about.

A real sum type would be nice, but when you're using null then you need to accept that null was not designed with your specific use case in mind.