3 ms·
Yes, why wouldn't they?
by ibraheemdev 6y ago
Yes, why wouldn't they?
- eat_veggies 6y agoI was just wondering. I'm new to rust and still getting my bearings. Seems like there's a lot of options for error handling, from doing it yourself with an enum to snafu to thiserror and anyhow or (apparently deprecated) failure
- shepmaster 6y agoYep! Really, most of the error handling libraries just reduce the boilerplate associated with creating your own error types. SNAFU also adds some opinions to the mix. You can see what the libraries do by expanding the procedural macros they use. When you look at the output, it's nothing special that you couldn't have done yourself!