|
|
|
|
|
by adamzochowski
5049 days ago
|
|
This looks very much like NULLs in the SQL world. A null (and NaN) is like an unknown. One can't compare unknowns because they are exactly that, unknown. Let's construct a language that on division on zero returns unknowns. a = 5 / 0;
b = 10 / 0;
Now, both a and b are set to unknown state. If one were to compare a to b, should the expectation be that they hold same value?I wish all languages would have nullability like SQL does. Where a great care has to be given to deal with nullable data, lest nulls nullify everything. |
|