Interestingly enough, after few weeks of using `failure`, now I am mostly returning back to old-school 1:1 error wrapping and From<> boilerplace. However, `failure`'s #[cause] is still useful for error chains, as well as `failure` itself for top-level app errors. #rustlang
-
Show this thread
-
The exact error mapping is superior when I need to match on exact error type and get a value carried by that error. But for the rest of it, failure still saves a lot of time and allows implementing nice things, i.e. print error chain.pic.twitter.com/QZmnSRvl9a
1 reply 0 retweets 0 likesShow this thread
Replying to @nercury
Interesting! Cc @withoutboats
2:28 PM - 8 Jan 2018
0 replies
0 retweets
0 likes
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.