3 ms·
What's wrong with Rust's error-handling mechanism (namely, the `Result` type)? Generally when writing Rust, panics only come up when you actively invite them wi
by jpco 11y ago
What's wrong with Rust's error-handling mechanism (namely, the `Result` type)? Generally when writing Rust, panics only come up when you actively invite them with something like an `.unwrap()` call or the `try!` macro, which is Decidedly Bad Style for anything serious.
- deleted 11y ago[deleted]
- kibwen 11y agoThe `try!` macro never causes panics, it uses the `Result` type as is typical for error handling in Rust.