I must say that I prefer Zig's language syntax sugar over Rust's stdlib Result type though (although as far as I'm aware, Rust is also getting syntax sugar, like if/while-let).

E.g. in Zig you can do this to unwrap the result:

if (error_or_result) |result| { ... }

Comments