Last week at the devoxx, I watched a presentation on “What’s new in Scala 2.8” and one thing I really liked in this presentation (and thus in Scala 2.8) was the notion of named and default parameters. What this means is that if you have a number of parameters, you can give them default values, so if they are not filled in when being called, the default values will be set as the parameters. This is something that is already present in a number of languages, but was (and still is) missing in java. Luckily my new preferred language to be has this now as well. When using this correctly, the code can become even more readable, since not all parameters have to be specified.
Continue reading “Scala Constructors with Scala 2.8”
Month: November 2010
Scala constructors
Overview of “getting my hands dirty with scala”
Since a while now, I have been trying to get into scala, because I think its a very interesting language with promising concepts. But as usual the scala books just kept lying around, waiting for a better time to come by. But waiting on better times will never result in anything so I decided to just start doing it. In this blog I will post the things that I ran into, hopefully for others to learn from, or otherwise, just for me to read and laugh about again.
Continue reading “Scala constructors”