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