2 ms·
> In both cases I have to either write a handler immediaitely after the call, or I'm going to fail and toss it back up to whoever called me. The main differenc
by saghm 9y ago
> In both cases I have to either write a handler immediaitely after the call, or I'm going to fail and toss it back up to whoever called me.
The main difference as I see it is that in Rust, you can't get the success value if there's an error, so you're forced by the compiler to handle any error if there is one. With tuples, you're free to just look at one element regardless of the value of the other.