"The moral is that you should not rely on the value of a val in the body of a constructor."
Oh Scala.
I'm still not won over by the OO.
-
-
It is using early definition syntax to initialise fields of a subclass before evaluating the constructor of the superclass.
-
I quite like the self type syntax myself, although I haven't had much of a chance at tying myself into knots with it yet

- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Scala books make learning Scala worth it
Keepin it real 