Chapter 2Taking Scala for a Ride
Surprisingly, it’s very easy to get Scala code up and running, whether you’re creating a short script or a full-fledged enterprise application. You can use any of the available IDEs or just a lightweight editor.
In this chapter, you’ll learn how to quickly run your Scala scripts from the command line and how to compile multiple files containing Scala code. If, at any time, you’re curious what Scala’s thinking—what the inferred types of variables are—you can quickly jump into the REPL where Scala interactively reveals valuable details. There’s no better way to learn Scala than by trying out some examples, so type the code and run them as you read along. Let’s get started with the most fun and interactive tool—the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access