Showing posts with label Puzzles. Show all posts
Showing posts with label Puzzles. 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.

Wednesday, 6 June 2012

Clean code: exceptions for Scala?

At the junction of OOP and FP Scala contributors are doing great things. While reading librarie's code I finding a lot of places where author's ignoring gode coding style for the name of performance or interface presentation. Can understand this, they are doing library.
Today found some interesting example called "my mother would kill me for this":