Wrapping Up

In this chapter, we took a quick drive through Scala from the perspective of Java programmers. We saw ways in which Scala is similar to Java and how, at the same time, it sets itself apart.

At first glance, Scala appears to be lighter Java—you can do everything you do in Java, but with less verbose and more expressive syntax. Beyond that, Scala provides a number of things that’s not supported in Java: tuples, multiple assignments, named arguments, default values, implicit parameters, multiline strings, string interpolation, and more flexible access modifiers.

While we only scratched the surface of Scala in this chapter, it brought out some key strengths of the language. In the next chapter, you’ll learn how Scala supports the OO paradigm. ...

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.