Can Scala be considered a functional superset of Java?

Posted by Giorgio on Programmers See other posts from Programmers or by Giorgio
Published on 2012-11-01T18:20:35Z Indexed on 2012/11/02 17:30 UTC
Read the original article Hit count: 268

Filed under:
|
|

Apart from the differences in syntax, can Scala be considered a superset of Java that adds the functional paradigm to the object-oriented paradigm?

Or are there any major features in Java for which there is no direct Scala equivalent? With major features I mean program constructs that would force me to heavily rewrite / restructure my code, e.g., if I had to port a Java program to Scala. Or can I expect that, given a Java program, I can port it to Scala almost line-by-line?

© Programmers or respective owner

Related posts about java

Related posts about programming-languages