|
|
|
|
|
by int_19h
452 days ago
|
|
And then you forget to write the err check once out of 100 times you have to write this verbiage. And the compiler lets you, because err was already checked in that same function (but for a different call), so it's not unused anymore. |
|
Rust's `?` operator on Result<T,E> types is flipping fantastic, puts all of the following to shame.
It's actually to the point that in quite a few projects I've worked on I've added this: