Hacker News new | past | comments | ask | show | jobs | submit login

It's also similar to C#'s "using ...;" without a block. Syntax sugar there rather than RAII, but looks the same.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: