Hacker News new | ask | show | jobs
by viraptor 586 days ago
It's also similar to C#'s "using ...;" without a block. Syntax sugar there rather than RAII, but looks the same.
1 comments

C#'s using can be used without a block. It disposes the resource at the end of a current scope.