Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
dhruvrajvanshi
1y ago
0 comments
Save
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
2 comments · 1 top-level
top
newest
oldest
Zambyte
1y ago
· 1 in thread
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
1y 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