2 ms·
Rust panics are pretty much exceptions under a different name. You can even "catch" the object passed to panic!(). The main difference is that with exceptions,
by int_19h 2y ago
Rust panics are pretty much exceptions under a different name. You can even "catch" the object passed to panic!().
The main difference is that with exceptions, they always unwind. With panics, the person building the binary can decide whether the panic should unwind or immediately abort.