Re:Java 7: Oracle pushes a first version of closures
by bfung on Monday May 31, 2010 @07:30PM
(#1393786)
Apologies: was editing, deleted, but people already replied; I always forget the markdown syntax...
Just to play devil's advocate, what is unusable about the syntax for anonymous classes in Java? An example close to bnoordhuis's post below, in today's syntax:
Collections.sort(list, new Comparator<Integer>() {
public int compare(Integer i1, Integer i2) {
return i1.compareTo(i2);
}
});
Just to play devil's advocate, what is unusable about the syntax for anonymous classes in Java? An example close to bnoordhuis's post below, in today's syntax:
How are closures going to help?