Blogs / Personal blogs

Stefan Baumgartner

fettblog.eu

Articles on web dev and software engineering: TypeScript, JavaScript, Rust, and more!

Popular posts
1
Total points
100
HN comments
65
Rank
#21,309 personal

Visit fettblog.eu → RSS feedOn Hacker News Oct 2021 – Oct 2021

Software Engineering 1Programming Languages 1

1

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.