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

SubmittedTitle on HNPointsComments
Oct 8, 2021Rust: Enums to Wrap Multiple Errors by jasim10065

Related posts from the same era