3 ms·
Except that rust doesn't have exceptions.
by inferiorhuman 9y ago
Except that rust doesn't have exceptions.
- cwzwarich 9y agoRust actually does have exceptions. Rust unwinding is implemented using LLVM/Dwarf exceptions, and can be caught using std::panic::catch_unwind: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html https://doc.rust-lang.org/std/panic/fn.catch_unwind.html Idiomatic Rust doesn't use them for error handling, and they can be disabled entirely with a command-line option, but the implementation still has to deal with all of the issues that come with having exceptions.
- inferiorhuman 9y agoWell, damn.