Re:“Rust is safe” is not some kind of absolute guarantee of ...
by layer8 on Sunday October 02, 2022 @02:13PM
(#33058621)
You’re probably right now that I’ve read up on it, I wasn’t previously aware of catch_unwind.
[ Parent
| on HN ]
Re:“Rust is safe” is not some kind of absolute guarantee of ...
by dureuill on Sunday October 02, 2022 @02:18PM
(#33058676)
Glad to be of service. Note that the idiomatic error handling in rust is still Result based rather than panic/catch_unwind based.
Nevertheless a long living application like, e.g., a webserver will catch panics coming from its subtasks (e.g., its request handlers) via catch_unwind