lombok hooks into the compiler, extending Java code to allow some code generation. So it's not unreasonable to consider Java+Lombok to be a distinct language from Java or even an extension/evolution of Java.
Scala reuses Java syntax as much as possible, changing it where necessary to add functional constructs and type inference. So it's not unreasonable to consider Scala an extension/evolution of Java. So comparing Scala to JavaLombokLambdaJ (JLL) is emphatically *not* the same as comparing Scala to Java. However, if you do compare Scala to JLL, three things stand out: - JLL is driven by annotations, so it's not a seamless integration that looks like part of the language - JLL does everything with reflection, adding a performance cost that could be critical in some domains - You still don't have pattern matching, or type classes, or etc, etc... On 25 August 2010 09:07, Fabrizio Giudici <[email protected]>wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 8/25/10 08:55 , Kevin Wright wrote: > > > > http://michid.wordpress.com/2010/08/24/so-scala-is-too-complex/ > > > > I'm curious, does anyone have an example of the same problem being > > solved in both Java and Scala, with Java offering the simplest > > solution? > > > Copying the response I posted to that blog: > > > If you used e.g. Lombok which auto-generates all the > getter/setter/toString plumbing code via annotations and e.g. lambdaj > that allows to use closure-like filtering on collections, the Java > listing would be just a bit longer than the Scala listing. Which > proves how often people asserting Scala being better than Java aren't > completely aware of all the possibilities that Java offers. :-) > > > - -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > java.net/blog/fabriziogiudici - www.tidalwave.it/people > [email protected] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkx0z1wACgkQeDweFqgUGxdA7ACgsWGCS+pU0lWGPCX/T+5DPk1o > 8tAAniDG7uNVDSPYTKRSKjHdBMnjZ/2p > =DZB/ > -----END PGP SIGNATURE----- > > -- Kevin Wright mail/google talk: [email protected] wave: [email protected] 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.
