4 ms·
Was just showing how Rust and Zig do it. Go capture could omit the ||.
by deagle50 3y ago
Was just showing how Rust and Zig do it. Go capture could omit the ||.
- tail_exchange 3y agoI've seen proposals that were very similar. I think the problem with this approach is that it doesn't really make error handling that much easier. Typing "catch err" is not that different from typing "if err != nil".