Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dhruvrajvanshi
10 months ago
|
parent
|
context
|
favorite
| on:
Using unwrap() in Rust is Okay (2022)
I suppose it's a matter of perspective but I don't see returning a 500 as "Recovering from the error". The user's request has still failed. It just hasn't taken down the server. IMO this is still fine.
Zambyte
10 months ago
[–]
It is quite literally using the "recover" function in go, so I think it's accurate to call it "recovering".
> this is fine
I didn't mention the merit, just that it is exception style control flow.
Zambyte
10 months ago
|
parent
[–]
Reading my top level comment again, I realized I did refer to the Zig way as "nice" relative to the exception style control flow.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: