Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
nicoburns
10mo ago
0 comments
Share
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.
0 comments
default
newest
oldest
Zambyte
10mo ago
Probably not. I have never used panic / recover in application code at least.
9rx
10mo ago
encoding/json uses uses exception handlers for control flow.
j
/
k
navigate · click thread line to collapse