3 ms·
Rust has panics that could appear anywhere.
by Georgelemental 3y ago
Rust has panics that could appear anywhere.
- cmrdporcupine 3y agoBut 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.
- nextaccountic 3y agoRust panics can be catched too, but it's true that it's less common than in languages with exceptions