2 ms·
Having used Rust, which almost exclusively uses Maybe types, I have to disagree. The "safety net" introduced by exceptions just hides possible errors, and cause
by nicoburns 7y ago
Having used Rust, which almost exclusively uses Maybe types, I have to disagree. The "safety net" introduced by exceptions just hides possible errors, and causes reliability problems that would be entirely avoidable if Maybe types were used. The `?` operator makes propogating errors painless if that is what you want, but at least they're all documented so you have to make a concious chocie to pass the buck on error handling.
- renox 7y agoI don't know: if we really wanted to be 'strict' every integer operation should return a Maybe due to possible overflow, every IO operation also. That's a lot of possible error to handle! I don't like exception's invisible flow but I think that they are good for 'should never happen' errors.