This chapter provides a whirlwind tour of the main features of the Scala 3 programming language. After this initial tour, the rest of the book provides more details on these features, and the Reference documentation provides many more details.
Setting Up ScalaThroughout this chapter, and the rest of the book, we encourage you to try out the examples by either copying them or typing them out manually. The tools necessary to follow along with the examples on your own computer can be installed by following our getting started guide.
Alternatively you can run the examples in a web browser with Scastie, a fully online editor and code-runner for Scala.
One good thing to know up front is that comments in Scala are just like comments in Java (and many other languages):
IDEsThe two main IDEs (integrated development environments) for Scala are:
Naming conventionsAnother good thing to know is that Scala naming conventions follow the same âcamel caseâ style as Java:
Person
, StoreEmployee
name
, firstName
convertToInt
, toUpper
More on conventions used while writing Scala code can be found in the Style Guide.
Contributors to this page:RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4