3 ms·
Yes, one of the reasons that catching panics was even stabilized in the first place is because in many scenarios, aborts are not acceptable. Embedding Rust in o
by steveklabnik 10y ago
Yes, one of the reasons that catching panics was even stabilized in the first place is because in many scenarios, aborts are not acceptable. Embedding Rust in other languages and runtimes is an important use case, for example, and a bug in your Rust extension bringing down your whole Rails app is not great.
The idea is not to make panics silent, but to be able to go from "this process is crashing" to "here's an error code".
- ori_b 10y ago> Embedding Rust in other languages and runtimes is an important use case, for example, and a bug in your Rust extension bringing down your whole Rails app is not great. It's not, but it beats it silently ending up in a bad state.
- kibwen 10y agoThe failure case in mind here is not silent data corruption, it is merely having your in-process performance monitoring service go offline.