logoalt Hacker News

rwmjyesterday at 8:16 AM0 repliesview on HN

This is the crucial difference. Scope-based is much better.

By the way, GCC and Clang have attribute((cleanup)) (which is the same, scope-based clean-up) and have done for over a decade, and this is widely used in open source projects now.