JEP draft: Concise Method Bodies - extend this to local functions?
Alex Buckley
alex.buckley at oracle.com
Thu Sep 20 20:22:30 UTC 2018
On 9/20/2018 1:08 PM, Maurizio Cimadamore wrote:
> On 20/09/18 17:32, Remi Forax wrote:
>> There is also a potential confusion between
>> Function<A,B> fun() = Utils::bar;
>> and
>> Function<A,B> fun() -> Utils::bar;
>>
> You meant between
>
> Function<A,B> fun() = Utils::bar;
>
> and
>
> Function<A,B> fun = Utils::bar;
>
> ?
>
> (first is method body, second is variable initializer)
I think Remi is noting the fact that, when using `->`, the single
expression can be a method reference expression. I have already recorded
this situation near the end of the JEP.
Alex
More information about the amber-spec-experts
mailing list