No one here mentioned Zig approach there, so I'll share: https://ziglang.org/documentation/master/#try
Zig has try syntax that expands to `expr catch |e| return e`, neatly solving a common use case of returning an error to the caller.
Zig has try syntax that expands to `expr catch |e| return e`, neatly solving a common use case of returning an error to the caller.
How well does it work in practice?
And even then this is just the same as the '?' operator Rust uses, which is mentioned in the post.