Scala and Other Languages

Scala has drawn a good number of features from other languages, most notably Erlang. The actor-based concurrency in Scala was inspired by the success of that model in Erlang. Likewise, static typing and type inference in Scala was influenced by languages like Haskell. Functional style capabilities came from several languages that came before.

With the introduction of lambda expressions and the powerful streams API in Java 8 (see Functional Programming in Java: Harnessing the Power of Java 8 Lambda Expressions [Sub14]) we can write functional style code in Java. This is not a threat to Scala or any of the other languages on the JVM; instead it closes the gap between these languages, making it less difficult for programmers ...

Get Pragmatic Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.