4 ms·
What is a valid reason to add a "null" into a modern language? I thought it's a commonly established truth that it has been a mistake
by dgan 4y ago
What is a valid reason to add a "null" into a modern language? I thought it's a commonly established truth that it has been a mistake
- mpartel 4y agoThis is a dynamically typed language. Null makes sense there. It also makes sense in a statically typed language with union types, think `string | undefined` in TypeScript. The extra layer added by Some/None is not fundamentally necessary for safety.