Primitives in Scala
This lesson covers objects and expressions in Scala.
Everything’s an object
Scala has no primitives in Java. In other words, when coding in Scala, everything is an object. However, the compiler will compile your code down to primitive math (if possible), so you don’t lose performance. In addition, functions are considered first-class citizens in Scala, which means they can be passed around as values. These factors are why people say that Scala combines the features of object-oriented and functional languages. ...
Access this course and 1400+ top-rated courses and projects.