Re:Exceptions should be Exceptional (2016)
by josefx on Friday March 13, 2020 @04:20AM
(#22565621)
I heard related issues called boolean blindness. You drop every bit of useful error information and leave only result/no result or true/false. Want to load a file and it fails? Access rights? Parsing Error? File doesn't exist? User interrupt? Can all be summed up as an empty Optional, completely useless for any kind of automated or manual recovery or even to decide if recovery is necessary (user interrupt).
[ Parent
| on HN ]
that is why in most languages with that approach you have a symmetric error type (Either for Haskell, Result for Rust etc.)