Month: September 2011

  • Readability vs Runtime Feedback

    In my scala explorations I also came across the problem of testing and verifying mocks. In scala it is trivial to pass around predicates, however these are function objects, that can be applied, but don’t know much about their implementation. So while the code is readable the feedback can be quite bad. Groovy’s assert statement…

  • Scala Compiler Quirks

    Recently I have been dabbling with scala a bit. As it happens I found a few quirks in the compiler. So does the following bit of code compiler and, if so, what does it print? object Example { val x = y val y = true def main(args: Array[String]) { print(x); } } Yes you’ll…