![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
For those curious about my frequent rhapsodies about Scala, you may want to check out the bible of the subject, which has just been published online for free.
There is, of course, a gotcha: this is the first edition of the book, not the second, so it doesn't talk about the fairly major improvements in the current 2.8 release of the language, much less the soon-to-be-released 2.9. But it's still 95% accurate and covers 90% of the interesting topics, so it's a convenient way to check out all of the ins and outs of the language for free...
There is, of course, a gotcha: this is the first edition of the book, not the second, so it doesn't talk about the fairly major improvements in the current 2.8 release of the language, much less the soon-to-be-released 2.9. But it's still 95% accurate and covers 90% of the interesting topics, so it's a convenient way to check out all of the ins and outs of the language for free...
(no subject)
Date: 2011-04-15 12:07 pm (UTC)I've started working through this. I was delighted to realize that a Map could be used as a function:
(no subject)
Date: 2011-04-15 02:57 pm (UTC)I will admit that I didn't know you could do that with a Map, but I'm not surprised -- it's a very Functional way of looking at things, and Scala tries to enable as much functional programming as is feasible...
(no subject)
Date: 2011-04-15 02:59 pm (UTC)(no subject)
Date: 2011-04-15 03:18 pm (UTC)But Scala is very deliberately trying to walk the hybrid line, with all of the full-bore power of both OO and Functional. They wind up with some compromises here and there, and we had a fascinating argument recently on scala-debate that you can't really *learn* functional programming in Scala (because it's too easy to cheat), but it does a surprisingly good job of doing well on both sides...