Hacker News new | ask | show | jobs
by jmull 311 days ago
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.
1 comments

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...