Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
equalsione
· 3y ago · 0 comments
This is what try-with-resource does in Java. Introduced in Java 8 I think so better late than never
Comments
[–]
scarface_74
3y ago
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.