Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicoburns
9 months ago
|
parent
|
context
|
favorite
| on:
Using unwrap() in Rust is Okay (2022)
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.
Zambyte
9 months ago
|
next
[–]
Probably not. I have never used panic / recover in application code at least.
9rx
9 months ago
|
prev
[–]
encoding/json uses uses exception handlers for control flow.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: