Re:Kotlin: The Problem with null
by simon_o on Friday January 12, 2018 @07:43PM
(#16137562)
No, because Option/Maybe can nested, nulls can't.
[ Parent
| on HN ]
Re:Kotlin: The Problem with null
by dragonwriter on Friday January 12, 2018 @07:55PM
(#16137602)
Nulls can be nested if you are using a language with explicit pointer types.
E.g.,
Int*** x;
Can be a lot like Maybe Maybe Maybe Int
It's just that in languages where a type like Integer really means “an integer or a null", the nullability doesn't nest, and no one wants to deal with naked pointers.