3 ms·
Rust has panic (and unwind_stack) for when things are truly borked. Exceptions for error conditions are for the birds because they lead to bugs either in the c
by anonsivalley652 7y ago
Rust has panic (and unwind_stack) for when things are truly borked.
Exceptions for error conditions are for the birds because they lead to bugs either in the code or in the compiler, and they lead to messy code.
Rust has functional-style error handling where it's possible to run other code, handle or ignore errors whereas exceptions create messy try catch blocks for every caller.