Just submitted a PR to a library crate to replace `anyhow` with `thiserror`.

Why are library authors using anyhow? I cannot understand it...

#rust #rustlang #rustdev #rustprogramming

@musicmatze that's annoying. Perhaps they don't understand the tradeoffs. I was lucky to find this post a little while ago when I was trying to understand the right way to do errors.

nick.groenen.me/posts/rust-err

Follow

@musicmatze and I didn't quite use all the recommendations in that post actually... In the portions of my application that were very much like a library I used thiserror (which is so cool). Then in the portions that were primarily error consumers I just handled then myself.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.