anyhow is brilliant. I've started using it in all my CLI programs and internal libraries for which structured errors aren't important. It's really lovely and pleasant to use. It's the first error helper library I've used more than once. https://docs.rs/anyhow
-
-
If your question was more about "why would I use Box<Error>," then that is a bit more involved. But the TL;DR is that you use Box<Error> when explicit structured errors aren't important or needed. A Box<Error> in that case is mostly just more succinct.
-
For a more complete story, see my blog post: https://blog.burntsushi.net/rust-error-handling …
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.