More with Less

One of the first differences you’ll find as you ease into Scala is that you can do more with a lot less code in Scala than in Java. The conciseness and expressiveness of Scala will shine through every line of code you write. You’ll start applying Scala’s key features and soon they’ll make your routine programing quite productive—Scala simplifies everyday programming.

To get a taste of Scala’s power and its benefits, let’s look at a quick example where we make use of many of the features. Even though the syntax may appear unfamiliar at this time, key in the code and play with it as you read along. The more you work with the code, the quicker it becomes familiar.

If you’ve not installed Scala yet, please see Appendix 1, Installing ...

Get Pragmatic Scala now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.