New post: Error Handling Survey I looked at 9 of Rust's error handling crates, and wrote about them in order to figure out what they provide and what they have in common.https://blog.yoshuawuyts.com/error-handling-survey/ …
Downcasting is still supported which means you can don't lose the ability to pattern match. This was one of the bigger innovations of Failure, and motivated the deprecation of the causes API I'm favor of sources.
-
-
Downcasting followed by a pattern match is the same as a non-exhaustive pattern match though, right? I cleared so many bugs that hadn't jumped out in testing in sled when I made my errors actually pattern matchable via nested results based on severity
-
Most bugs in real stateful cloud systems happen because the error handling is under-tested. It's super important to lean as hard into the type system as possible to make many bugs harder to write in the first place
- 3 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.