2 ms·
No one thinks that non-existence can't be represented, and all but the most extreme proof languages have the possibility of runtime error. Null is a mistake be
by paulddraper 7y ago
No one thinks that non-existence can't be represented, and all but the most extreme proof languages have the possibility of runtime error.
Null is a mistake because it is (1) ubiquitously permitted in types and (2) non-composable.
(Point #2: This caused JavaScript to have "undefined" which is a second level of nonexistence)
The Maybe/Option pattern solves both these problems.
Nullable at least solves the first one.
When people criticize "null, the billion dollar mistake", they criticize the ubiquitous, non-composable form of null.
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/ https://www.lucidchart.com/techblog/2015/08/31/the-worst-mis...