2 ms·
> If 3-value logic is such a good idea, why doesn't any modern general-purpose language use it? Most dynamically typed general-purpose languages use a large-nu
by dragonwriter 5y ago
> If 3-value logic is such a good idea, why doesn't any modern general-purpose language use it?
Most dynamically typed general-purpose languages use a large-number-of-values logic, they just use a different formulation than SQLs 3VL. Particularly, nulls tend to be equal to each other, and only propagate from basic boolean ops where false would, not whenever they are an input. (Though IEEE 754 NaNs, which most use and are another flavor of null-like value, are not equal to each other, and, in the case of quiet NaNs, propagate a lot like SQL nulls through arithmetic operations [though not consistently through other language features].)