2 ms·
Panic is what Rust calls exceptions.
by adastra22 5y ago
Panic is what Rust calls exceptions.
- dragonwriter 5y ago> Panic is what Rust calls exceptions. Not exactly; “panic” is what Go calls exceptions. Rust “panic!” macro, though, is more of a gentle abort (I guess it's like an uncatchable exception, but that qualifier so radically changes the nature that I can't see it as really the same kind of thing.)
- adastra22 5y agohttps://doc.rust-lang.org/std/panic/fn.catch_unwind.html https://doc.rust-lang.org/std/panic/fn.catch_unwind.html