Method references with types [Re: lambda syntax tutorial]

Brian Goetz brian.goetz at oracle.com
Thu Aug 5 19:30:44 PDT 2010


For completeness:

>> How about expressions?
>>
>> #String.length() + 2

Type error.

>> #A.getB().getC()

Greedy.  Evaluate t=A.getB(), then evaluate to #t.getC().

>> and even partiall application?
>>
>> #A.getB(2).getC()

Nope.

>> #A.getB(Integer).getC()

Nope.


More information about the lambda-dev mailing list