Re:My Struggles with Rust
by jimktrains2 on Sunday May 07, 2017 @09:44AM
(#14285418)
Yes, exceptions are better than return codes, but I would argue Result types are better than exceptions. Checked exceptions in Java have their issues. Exceptions in C++ are odd beasts (though that's getting better, they're still not checked and therefor basically anything that isn't noexcept can throw them (oh wait! noexcept can throw! it just crashes immediately)).
Anyway for me exceptions are way easier to work with, than return codes.