Wither method references?
Reinier Zwitserloot
reinier at zwitserloot.com
Tue Jun 21 02:22:20 PDT 2011
Are method references still in? i.e. something like:
public static int foo(String a, String b) {
return a.length() - b.length();
}
public void whatever() {
Comparator<String> x = #foo;
}
If so, any dislike of '#' is basically a moot point. # will be in java7
anyway.
Then a big disadvantage of BGGA or pretty much any non-strawman syntax is
that it takes out both # and ->, whereas strawman only takes out # for
language features. The fact that lambda is happening at all suggests its
useful to have some unused symbols left over for future features :)
--Reinier Zwitserloot
More information about the lambda-dev
mailing list