Stefan Baumgartner personal blog
Rust: Enums to Wrap Multiple Errors
This is a follow-up to Error handling in Rust from a couple of days ago. The moment we want to use error propagation for different error types, we have to rely on trait objects with Box<dyn Error>, which means we defer a lot of information from compile-time to runtime, for the sake of convenient error handling.
- Points
- 100
- HN comments
- 65
- Submissions
- 1
- Cited by
- 0 commenters
Programming LanguagesSoftware Engineering2021
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Oct 8, 2021 | Rust: Enums to Wrap Multiple Errors by jasim | 100 | 65 |