Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jmull
· 1y ago · 0 comments
I think the idea is errors are for control flow. If you have other information to return from a function, you can just return it — whether directly as the return value or through an “out” parameter or setting it in some context.
Comments
[–]
meepmorp
1y ago
It's weird that you've been downvoted for essentially restating what Zig's BFDN said when closing an issue related to error payloads:
https://github.com/ziglang/zig/issues/2647#issuecomment-2525...