Re:Why is Zig so Cool?
by rustacean on Saturday November 08, 2025 @03:58AM
(#45855270)
In Rust, there’s a drop guard pattern to do this, which leverages the lazy execution of closure, checkout the scopeguard crate. C++ should be easy to do that too I think
[ Parent
| on HN ]
There are no comments on this comment yet.