3 ms·
> NULL/missing is so common that it makes sense to provide special language support, even if you don't have full unions. See e.g. Kotlin and Typescript. No it
by lmm 3y ago
> NULL/missing is so common that it makes sense to provide special language support, even if you don't have full unions. See e.g. Kotlin and Typescript.
No it doesn't. It's a bad idea in programming languages just as it's a bad idea in SQL.
- dtech 3y agoGiven that a lot of non-niche modern languages disagree with you and you provide no rationale, I remain unconvinced. Swift, Kotlin, Javascript/Typescript along with some older languages (PHP, C#, probably more) have special null-handling in the language. Go and Rust do it differently, but do have an extremely strong opinion on how missing values should be handled.
- quickthrower2 3y agoThere are tradeoffs - if you go against the zeitgeist and ban nulls then you risk people you need to please for success sticking their nose up at you. It is a bit like car safety features - if it is such a good idea why wasn't it taken seriously until say the 90s.