It's quite a bad and bizarre design choice actually. It's strictly inferior to the other alternative.
Zig took the correct approach with its 'defer' and 'errdefer' constructs, fixing the two flaws with golang's implementation.
It's quite a bad and bizarre design choice actually. It's strictly inferior to the other alternative.
Zig took the correct approach with its 'defer' and 'errdefer' constructs, fixing the two flaws with golang's implementation.