Hello, I am starting to learn Scala and while reading Programming in Scala I found the following statement in Chapter 1 · A Scalable Language.
Even though object-oriented programming has been mainstream for a long time, there are relatively few languages that have followed Smalltalk in pushing this construction principle to its logical conclusion. For instance, many languages admit values that are not objects, such as the primitive values in Java. Or they allow static fields and methods that are not members of any object. These deviations from the pure idea of object-oriented programming look quite harmless at first, but they have an annoying tendency to complicate things and limit scalability.
In the following lines there isn’t an explanation. Which are the problems behind primitives that led Scala developers to rather choose Objects?
Thank you for your atention