3 ms·
So much snark. Error handling is something Rust does really well. Having used exception languages quite a bit I much prefer the forced handled return values.
by vvanders 10y ago
So much snark.
Error handling is something Rust does really well. Having used exception languages quite a bit I much prefer the forced handled return values.
Exceptions don't map well to the type of handling patterns like and_then(...), or_else(...) and the like which I find much more ergonomic and clean.
- valarauca1 10y agoExceptions can also be a pain to deal with in lazy Iterators. Either every lambda needs to be a try statement, or you need state.
- deleted 10y ago[deleted]