Method references with types [Re: lambda syntax tutorial]
Howard Lovatt
howard.lovatt at gmail.com
Thu Aug 5 19:26:06 PDT 2010
John Nilsson john at milsson.nu Thu Aug 5 18:54:59 PDT 2010 wrote:
> On Fri, Aug 6, 2010 at 12:59 AM, Stephen Colebourne <scolebourne at joda.org> wrote:
>> The complete set of conversions would be:
>> [...]
>
> How about expressions?
>
> #String.length() + 2
>
> #A.getB().getC()
>
> and even partiall application?
>
> #A.getB(2).getC()
>
> #A.getB(Integer).getC()
Good reason to use the infix notation, then it doesn't look like a
call and hence people won't expect an expression to be an option.
-- Howard.
More information about the lambda-dev
mailing list