State of the Lambda

Duke Java Logo

Brian Goetz, from Oracle, has posted an updated proposal for the lambda expressions : State of the Lambda Here are some examples of closures taken from the proposal : We can use lambda expressions to replace the heavy usage of Single Abstract Method (SAM) interfaces : We can make references to methods to use it [...]



Java 7 : Add “public defender methods” to Java interfaces

Java Logo

At this time, we aren’t sure that the closures will be included in the Java 7 release. But these doubts have generated a new project : The “public defender methods” proposal. This new proposal for Java 7 wants to improve the interfaces allowing to add new methods to existing interfaces. The classes implementing the interfaces [...]



Java 7 : Oracle pushes a first version of closures

Java Logo

2 days ago, Oracle pushed a first version of the closures implementation. We can see the evolving syntax in the test cases they made for the Java compiler. You can see these test cases here. This revision supports the following features (copied from revision) : Function types syntax Function types subtyping Full support for lambda [...]