Implementing recursive lambda with MethodHandle
Paul Benedict
pbenedict at apache.org
Mon Feb 22 11:57:30 PST 2010
On Mon, Feb 22, 2010 at 1:48 PM, Neal Gafter <neal at gafter.com> wrote:
> On Mon, Feb 22, 2010 at 11:28 AM, Joshua Bloch <jjb at google.com> wrote:
>
>> Yes, but it uses an (ugly) anonymous class initialization expression. The
>> whole idea of this JSR is to eliminate the need for these beasts.
>>
>
> That is definitely not the idea of this JSR. We are not "eliminating" the
> need for anonymous inner classes. We are providing a good alternative for a
> huge number of use cases. These recursive functions are a vanishingly small
> fraction of the identified use cases.
>
Neal, I think Josh was saying the JSR is to eliminate the anonymous
class syntax for lambdas -- not eliminate the syntax in general.
Paul
More information about the lambda-dev
mailing list