Summary: Lambda syntax
Howard Lovatt
howard.lovatt at gmail.com
Thu Mar 18 19:41:42 PDT 2010
Alex,
In my proposal I am specifically saying that it is up to the JVM to
eliminate the new and not the compiler, therefore new valid in proposal.
Just like the new could be eliminated by the JVM from:
for ( final int[] row : matrix ) {
result.add( filter( row, new Callable1<Boolean, Integer>() {
public Boolean call( final Integer x ) { return x % 2 == 0; }
} );
}
-- Howard.
More information about the lambda-dev
mailing list