Re:My favourite C++ footgun
by fpoling on Wednesday June 23, 2021 @04:05PM
(#27609468)
You can recover from panic! in Rust on the thread level.
[ Parent
| on HN ]
Yeah, I know I can recover, that's why I said they are equivalent of C++ exceptions (which can be caught as well). But this is not a recommended idiomatic way of handling expected errors, e.g. input errors, improper configuration, I/O errors etc.