Wither method references?
Jonathan Halterman
jhalterman at gmail.com
Tue Jun 21 09:30:48 PDT 2011
Unused symbols are good, but having two symbols for two separate purposes is
also good.
Jonathan
On Tue, Jun 21, 2011 at 2:22 AM, Reinier Zwitserloot <
reinier at zwitserloot.com> wrote:
> 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