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.
https://github.com/ziglang/zig/issues/2647#issuecomment-2525...