Exceptions?
Exceptions?
Posted Sep 21, 2024 4:54 UTC (Sat) by zorro (subscriber, #45643)In reply to: Exceptions? by tchernobog
Parent article: Best practices for error handling in kernel Rust
How are Rust errors conceptually different from Java checked exceptions, though? Checked exceptions force you to either handle errors as they occur, or pass them to the caller, just like Rust errors. Most people will agree that Java checked exceptions were a disaster.
I do like that panic/recover facility of Rust, it seems to match the failfast philosophy underlying robust software development very well.