3 ms·
A Rust panic can be caught, too. It's just bad form to do so in Rust because it's bad for maintainability to design programs like that. Rust is opinionated an
by dannymi 4y ago
A Rust panic can be caught, too.
It's just bad form to do so in Rust because it's bad for maintainability to design programs like that.
Rust is opinionated and very much NOT an anything goes language. There is a culture and the culture says do not catch panics. If you feel the need to catch a panic, make it a regular value instead.