For every single feature that Scala has in common with Java, Scala does it more simply.
Class parameters vs. Constructors inference vs. Explicit typing Singletons vs. Static methods Declaration vs. Call-Site variance Case classes vs. Boilerplate Functions vs. SAM types I cannot think of a single equivalent feature that's easier in Java. All of the Scala features frequently quoted as examples of complexity have no direct equivalents: implicits vs. Explicitly passing extra arguments higher-kinded types vs. Heavy overloading, inflexible design, or some sort of reflection hackery. Pattern matching vs. Endless if/else if statements, or the visitor pattern. XML literals vs. Dom4j or jdom manifests vs. ? On Wednesday, September 8, 2010, Mario Fusco <[email protected]> wrote: >> That's an interesting observation. Personally, I think the reason why Scala >> will never become mainstream is more because of its complexity than its >> syntax, although both are clearly related. > > This myth of the unbearable complexity of Scala is starting to become > annoying. Did you give a look to the proposed lambda expressions in > JDK 7? Did you find less complex? And honestly ... if I didn't feel > comfortable with complexity I had chosen a different job. > > Mario > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright mail / gtalk / msn : [email protected] pulse / skype: kev.lee.wright twitter: @thecoda -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
