Friday, 17 May 2013

Class Parameters

I’m on the AboutClasses koan.  So far Scala is holding up its end of the promise of terseness.  For example:

and the immutable equivalent:

and if you simply want a private field:

So far, so impressed.

No comments:

Post a Comment