by amitu · 3y ago · 0 comments
Panic is a way for Rust library ecosystem to signal this error in un-recoverable, and is probably a bug in program, for which you would be happy getting Sentry or some such reporting.
Most errors in Rust are handled using mechanisms described in post using Result. Some, this is probably a bug in code, mechanism should be present in other languages.
There are even efforts to make code that can panic detectable at compile time, https://docs.rs/no-panic/latest/no_panic/
No comments yet.