Re:Exceptions should be Exceptional (2016)
by LessDmesg on Friday March 13, 2020 @10:27AM
(#22567482)
LBYL can easily be enforced by Maybe types, leaving exceptions for really exceptional things (which a nonexisting file definitely isn't). So we see how not having a real type system hurts and deforms a language in ways unrelated to types.
[ Parent
| on HN ]
Re:Exceptions should be Exceptional (2016)
by Nullabillity on Friday March 13, 2020 @12:26PM
(#22568596)
That's still EAFP (you didn't check the precondition before trying), just through a different mechanism.