Day: September 4, 2011

  • 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…