4 ms·
Many do, yes. Panics are non-recoverable errors, and aborting produces leaner code, which is important on embedded.
by steveklabnik 9y ago
Many do, yes. Panics are non-recoverable errors, and aborting produces leaner code, which is important on embedded.
- quotemstr 9y agoPanics are recoverable though
- steveklabnik 9y agoThey’re not guaranteed to be, so you can’t rely on it. You can say that you do, but then you may cut yourself off from the rest of the ecosystem. Libraries generally can’t rely on either behavior, applications choose.
- quotemstr 9y agoAnd that's why I think the Rust has a worst-of-both-worlds error handling strategy.