You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest using thiserror for error handling. There's a great article explaining why it's more ergonomic and efficient than manual implementation (which convinced me to use thiserror in my crates): https://nick.groenen.me/posts/rust-error-handling/
I looked at it and did not really see obvious improvements over doing it manually, especially because I had a somewhat weird idea in my head of having an Error type which both can be used as a library return error (so easy for other programmers) as for display to end users.
I suggest using thiserror for error handling. There's a great article explaining why it's more ergonomic and efficient than manual implementation (which convinced me to use thiserror in my crates): https://nick.groenen.me/posts/rust-error-handling/
rust-bio have also adopted thiserror recently.
The text was updated successfully, but these errors were encountered: