3 ms·
> the difference in Rust between just returning an error (a ? at the end of the expression that can return one) vs adding context is much higher I don't disagr
by dllthomas 1y ago
> the difference in Rust between just returning an error (a ? at the end of the expression that can return one) vs adding context is much higher
I don't disagree with what you've said, but I think this is likely to be read too strongly.
Adding a map_err before the ? is only a big step up in verbosity because the ? alone is so very terse.