C# has using with the IDisposable interface. Java 7+ has identical functionality with try and the AutoCloseable interface
using
IDisposable
try
AutoCloseable
http://illegalexception.schlichtherle.de/2012/07/19/try-with-resources-for-scala/
Another implementation, probably more clean from "follow Java specifications" viewpoint, but also fails to support multiple resources