Re:An Opinionated Guide to Modern Java Development, Part 1
by spullara on Friday May 02, 2014 @07:39PM
(#7688805)
It was a misunderstanding on my part about where they were claiming the anonymous class was generated. Early versions of Lambda were nothing more than sugar on top of anonymous inner classes and the claim above sounded very similar to that. However, I see that inside the LambdaMetaFactory anonymous classes are generated based on the call site. Probably the biggest difference is that Java 8 can avoid an object allocation when the lambda doesn't capture. Not sure if Scala supports this but I'm sure that it could do it.
[ Parent
| on HN ]
There are no comments on this comment yet.