3 ms·
Also Scala's lambdas create new anonymous classes, but Java's lambdas are kind of bootstrapped static methods in the existing class file. It does get converted
by tjoener 8y ago
Also Scala's lambdas create new anonymous classes, but Java's lambdas are kind of bootstrapped static methods in the existing class file.
It does get converted to a class at runtime, but then it's long past the classloader anyway.
- yawaramin 8y agoScala 2.12 lambdas compile to Java 8 lambdas.