This article explores some of Java 8’s new features, using both Java’s proposed syntax and Scala. We cover lambda expressions, higher-order functions, parallel collections and virtual extension methods aka traits. Besides this, we will provide insights into the new paradigms integrated in Java 8, such as functional programming.
He CC'ed Martin Odersky, the lead designer of Scala and Typesafe’s Chief Architect. Given that the two people best-situated to improve Scala had just asked me about my experience over the past two years of using Scala, I wrote a long, considered, brutally honest response.
Citing a need to be able to respond faster to events, and disappointment in the feature set and timeframe for Java 7, the team behind guardian.co.uk is using Scala as an alternative to Java for their new projects. InfoQ spoke to Web Platform Development Team Lead Graham Tackley about their current stack, the reasons behind the move, and the experience of using Scala in large-scale development.
A Look at How Scala Compiles to Java Consider this contrived example, based on an example from Beginning Scala. The point of the snippet was to demonstrate the congruency between using the...