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

Follow

@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

@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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.