Implementing recursive lambda with MethodHandle

Joshua Bloch jjb at google.com
Mon Feb 22 12:19:45 PST 2010


Paul,

On Mon, Feb 22, 2010 at 11:57 AM, Paul Benedict <pbenedict at apache.org>wrote:

> 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.


Exactly so.

      Josh


More information about the lambda-dev mailing list