Hacker News new | ask | show | jobs
by Georgelemental 952 days ago
Rust has panics that could appear anywhere.
1 comments

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.

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