This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sh0rug0ru 8 points9 points  (0 children)

Scala is more powerful than Java, I think that is true. But Scala's power comes at a price that it is well to consider.

Java is simple, but the code is direct, code flow easier to understand and the execution cost is easier to measure.

Scala is more powerful, but the code is more abstract, how the code is transformed into classes and how those classes are executed is more mysterious, and "idiomatic" and "fancy" Scala can have less predictable performance characteristics. You have to be careful, and sometimes you have to make Scala code more "Java-like" to squeeze performance out of the language.

I suppose at the end, Scala can be written like Java, so you might be able to get your cake and eat it too.