3 ms·
I broadly disagree, but others here have covered all the points I would have made around that, so instead I'll mention an interesting thought this did bring up
by brundolf 4y ago
I broadly disagree, but others here have covered all the points I would have made around that, so instead I'll mention an interesting thought this did bring up for me:
> Most of the time I see it, ? would be better and could be used instead with minimal hassle
I don't agree that you should just bring in a library, as a default strategy, to make it easy to use ? in all cases without thought
But. For the subset of cases where you could do this without any type changes - where the unwrapped error already has the right type for the containing function - I wonder if it would make sense to have a Clippy rule and/or IDE autofix?