4 ms·
If you mean lower level Rust code, there are no exceptions. Errors are just regular values encoded in the type system. If you're familiar with OCaml optionals a
by fasquoika 9y ago
If you mean lower level Rust code, there are no exceptions. Errors are just regular values encoded in the type system. If you're familiar with OCaml optionals and results, it's the same thing
- dbaupp 9y agoThere's a subtlety here: panics are exceptions, but they can be disabled without also disabling RAII.