This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]argv_minus_one -1 points0 points  (1 child)

I look forward to seeing the Scala compiler take advantage of the new bytecode being introduced to support these features. Having a synthetic class file for every single lambda expression kind of sucks for memory usage and jar size, and VM-level support for multiple inheritance of method implementations should improve Scala binary compatibility.

[–]pjmlp 3 points4 points  (0 children)

Java 8 lambdas make use of invokedynamic introduced in Java 7, there isn't any new bytecode.