Showing posts with label Scala. Closures. Show all posts
Showing posts with label Scala. Closures. Show all posts

Thursday, 7 June 2012

Scala: return from closures


"Funny" code


Functions are first class citizens in Scala. JVM, that doesn't know anything on Functions. All the magic is coming from the Scala Library and compiler. Sometimes we should know about "workarounds" were applied to support rich language features.