I know not everyone is into "failure", but I think it's fantastic! Backtraces. Explanations. Blanket wrappers for all error types. I like how it allows non-experts to create a good error handling story in Rust :D https://boats.gitlab.io/failure/fail.html …
-
-
Oh, don't think I've talked about `ensure!()` at all. It's the Result equivalent of `assert!()`. So if you think of assert as "panic if this conditional is false", you can think of ensure as "return an Error if this conditional is false". One line error handling is great!
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.