Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
dhruvrajvanshi
10mo ago
0 comments
Share
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.
0 comments
default
newest
oldest
Zambyte
10mo 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
10mo 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.
j
/
k
navigate · click thread line to collapse