Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
equalsione
2y ago
0 comments
Save
Share
This is what try-with-resource does in Java. Introduced in Java 8 I think so better late than never
0 comments
1 comments · 1 top-level
top
newest
oldest
scarface_74
2y 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.
j
/
k
navigate · click thread line to collapse