3 ms·
I don't see how they are fine, when NULL is widely known (even though it might not be agreed by some) as the billion-dollar mistake. One could have easily adde
by orangeboats 3y ago
I don't see how they are fine, when NULL is widely known (even though it might not be agreed by some) as the billion-dollar mistake.
One could have easily added an Optional type that forces programmers to check for nil every time the optional variable is accessed.
- campbel 3y agoCouldn't we do an optional type with the type system as is rather than embedding in the language? type Optional[V any] struct { IsSet bool Value V }