Could you be so kind as to point out where you found this example please? I could not find it in the documentation link in parent post.
https://ziglang.org/#A-fresh-take-on-error-handling
But the one I posted is from GitHub, where it has e.g:
https://github.com/ziglang/zig/blob/8139c5a516eaa217ed76acdf...
also:
https://github.com/ziglang/zig/blob/92d9cef07116da8639ac33b7...
I can follow along with almost any language if there is enough examples I can piece together. I didn't think about scrolling through a bunch of GitHub pages. It isn't as convenient, but probably a better example of how to put together a full program as well as style.