Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: