Y
Hacker News
new
|
ask
|
show
|
jobs
by
dhruvrajvanshi
391 days ago
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.
1 comments
Zambyte
391 days 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.
link
Zambyte
390 days ago
Reading my top level comment again, I realized I did refer to the Zig way as "nice" relative to the exception style control flow.
link
> this is fine
I didn't mention the merit, just that it is exception style control flow.