4 ms·
I accept, however this requires to create many types with corresponding implementations (`impl From`, `impl Display`, ...). This is a lot of boilerplate.
by conaclos 1y ago
I accept, however this requires to create many types with corresponding implementations (`impl From`, `impl Display`, ...). This is a lot of boilerplate.
- colanderman 1y agothiserror automates all of that: https://docs.rs/thiserror/latest/thiserror/ https://docs.rs/thiserror/latest/thiserror/ Highly recommended.
- conaclos 1y agoSure, but it's an additional dependency. I would prefer it if some of this machinery were added to `core`.
- shepmaster 1y agoIn addition to the sibling comment mentioning thiserror, I also submit my crate SNAFU (linked in my ancestor comment). Reducing some of the boilerplate is a big reason I enjoy using it.