Re:Avoid NULL
by johncolanduoni on Sunday November 08, 2015 @10:15PM
(#10531184)
Because you can forget a null-check, but the type system won't let you forget an option/not_null? It's the same reason we complicate things with type systems in general.
[ Parent
| on HN ]
It's more for consistency. You can still forget to use a not_null.
Re:Avoid NULL
by johncolanduoni on Sunday November 08, 2015 @10:22PM
(#10531198)
Not if you're calling into an API that uses not_null; it will automatically insert the null check.