My Favorite Feature in the Whole Wide (world of) Scala 2.10
I'll prove without a shred of doubt that string interpolation as implemented in Scala 2.10 is the coolest thing...[insert Jeremy Clarkson-style pause]... in the world. To really drive my point home, I'll show how it integrates with other language features, such as pattern matching, implicit classes, and macros. The hidden agenda of this talk is to illustrate why we say Scala is simple, which is not to be confused with 'easy or 'simplistic', as previously expertly explained by Rich Hickey. I'll show how string interpolation is simple in the sense that it can be understood in terms of Scala's core concepts: methods and objects -- nothing more. Thus, it adds expressive power to Scala without the cost of introducing new concepts, which is where true complexity lies. In fact, all of Scala is designed with this philosophy: implementing sophisticated solutions to complex problems in a simple, elegant, way. Elegance may be in the eye of the beholder, but I'd say simplicity isn't. (Also, no one said it was going to be easy -- would you want it to?) If that wasn't enough, I'll take you on a brief tour of Scala 2.10 and update you on where we are with Scala 2.11.