Search code examples
scalajvmlanguage-designscala-2.8jvm-languages

What compromises Scala made to run on JVM?


Scala is a wonderful language, but I wonder how could be improved if it had it's own runtime?
I.e. what design choices were made because of JVM choice?


Solution

  • This article is a discussion with Martin Odersky (Scala's creator) and includes the compromises that were made in Scala for compatibility with Java. The article mentions:

    1. Static overloading of methods
    2. Having both traits and classes
    3. Inclusion of null pointers.