difference… wait! SCALA Lambda expressions in Java are syntactic sugar over anonymous classes that have access to the final objects of a context only. But in Scala, they are full-on closures that have the full access to the context.
you: java: class Clazz inherits unrelated defaults for draw() from types SayHello and SayGoodbye SCALA OUTPUT Diamond problem? Scala considers the order in which traits are inherited
can be applied to arguments just like a normal method. In this case the implicit label has no effect. However, if such a method misses arguments for its implicit parameters, such arguments will be automatically provided.
(not so easy to implement in Java…) • Most complex yet most powerful type system in any language I know of • Type inference • Let’s not forget pass by name arguments and the ability to construct a DSL • Much better and more elegant futures / promises • Macros! • …
More control, less code. Functional component library for java8 • http://javaslang.com/ Functional Java is an open source library facilitating functional programming in Java • http://www.functionaljava.org/ Backport of Java 8's lambda expressions to Java 7, 6 and 5 • https://github.com/orfjackal/retrolambda