Re:A Programming Idiom You've Never Heard Of
by michaelochurch on Tuesday January 03, 2012 @11:56PM
(#3422838)
Clojure has with-open, to the same effect. I don't think Scala has one natively but the Odersky book covers how to make one using a by-name parameter and an anonymous class.
[ Parent
| on HN ]
There are no comments on this comment yet.