3 ms·
> Go does at least some of it with deferred function calls. For what it's worth, Zig has a very similar deferred function call mechanism for deferred cleanup,
by loeg 5y ago
> Go does at least some of it with deferred function calls.
For what it's worth, Zig has a very similar deferred function call mechanism for deferred cleanup, and something like Rust's Result type. See https://ziglang.org/documentation/master/#defer https://ziglang.org/documentation/master/#defer and https://ziglang.org/documentation/master/#Error-Union-Type https://ziglang.org/documentation/master/#Error-Union-Type .