4 ms·
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 retur
by jmull 1y 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.
- meepmorp 1y agoIt'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-2525409324 https://github.com/ziglang/zig/issues/2647#issuecomment-2525...