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 :
public interface CallbackHandler {
public void callback(Context c);
}
CallbackHandler cb = { c -> System.out.println("pippo") };
We can …
