Re:The Setup-Cleanup Problem
by quantified on Wednesday January 08, 2020 @09:05PM
(#21997848)
Similar for Java's try-with-resources.
Also, I use a style in Java with higher-order functions (aka Callables/Runnables) that's like the pattern ascribed to Ruby, for situations not covered by AutoCloseable.
Also, I use a style in Java with higher-order functions (aka Callables/Runnables) that's like the pattern ascribed to Ruby, for situations not covered by AutoCloseable.