Hacker News new | ask | show | jobs
by equalsione 1067 days ago
This is what try-with-resource does in Java. Introduced in Java 8 I think so better late than never
1 comments

Anytime I see “something was added to Java” late in the game, it’s usually an ugly hack.

But I have to admit that the syntax for it is actually sensible.