Hacker News new | ask | show | jobs
by nicoburns 391 days ago
Is that used for application-level errors though? Rust web servers do that too, but it is used a fallback to avoid bringing down the whole server due to an unexpected crash. It is not a mechanism you would use intentionally.
2 comments

Probably not. I have never used panic / recover in application code at least.
encoding/json uses uses exception handlers for control flow.