Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
rustacean
· 1y ago · 0 comments
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
Comments
No comments yet.
Better HN