2 ms·
Cool thank you! That is actually not the thing that I would have guessed, which is why I love asking these questions rather than assuming. > you are no longer
by steveklabnik 4y ago
Cool thank you! That is actually not the thing that I would have guessed, which is why I love asking these questions rather than assuming.
> you are no longer in the control flow of the parent function,
Yeah, I run into this myself from time to time. I still end up defaulting to map_err when possible and then doing this when I have to, personally, but I can see the logic here.
> I don't have to remember the different Result methods:
I 1000% understand this. I think where I'm personally at is because I do know those methods, I end up doing the opposite: it takes me a second to go "oh, this is just map_err," which is the same problem but in reverse, and someone's gonna have to do it one way or the other.