Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java has the try-with-resources statement, and C# has the using statement. They're alternative forms of the try statement and they're functionally equivalent to Python's with statement using contextlib.closing.


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

Search: