Hacker News new | ask | show | jobs
by cpburns2009 2803 days ago
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.