3 ms·
I wish SQL had used a Maybe/Option type, or other algebraic data types, instead of NULL. So much safer and cleaner.
by jeffdavis 7y ago
I wish SQL had used a Maybe/Option type, or other algebraic data types, instead of NULL. So much safer and cleaner.
- earthboundkid 7y agoWhat would the behavior of the option type be? I don't see how it would behave differently than what SQL does today.
- jeffdavis 7y agoOption types can require exhaustive matching. So where there can be a NULL, you would have to address it. The syntax can make it pretty easy to handle typical cases.