3 ms·
> The type of error objects is still a mess. Rust needs something like Python's exception type hierarchy and a consistent way to convert special error types int
by orf 6y ago
> The type of error objects is still a mess. Rust needs something like Python's exception type hierarchy and a consistent way to convert special error types into more general ones. I notice there's a Rust working group on error handling, again.
Anyhow[1] and thiserror[2] really help here, no?
1. https://github.com/dtolnay/anyhow https://github.com/dtolnay/anyhow
2. https://github.com/dtolnay/thiserror https://github.com/dtolnay/thiserror