Hacker News new | ask | show | jobs
by cmrdporcupine 951 days ago
But the flow control is easier to reason about. You don't have to go guessing about non-local catch blocks that the caller may have introduced. The code either panics, or propagates.

Exceptions look remarkably wrong headed to me in retrospect. Allowing the caller to change the error handling contract and flow control.

1 comments

Rust panics can be catched too, but it's true that it's less common than in languages with exceptions