Lambda and JSR 292 method handle (a prototype)

Neal Gafter neal at gafter.com
Sun Dec 27 09:57:33 PST 2009


Rémi-

In Types.java, you seem to mark most function types as reifiable, but your
mapping (erasure) does not in fact reify them.  Am I missing something?

Also, your selected syntax for lambda expressions would be ambiguous with
shorthand invocation.  The expression "lambda()(2)" can either be a lambda
expression of no arguments whose result is 2, or an invocation of a method
named lambda with no arguments, and then applying the resulting function
value to the single argument 2.

Cheers,
Neal

On Sun, Dec 27, 2009 at 8:31 AM, Rémi Forax <forax at univ-mlv.fr> wrote:

> I've sketch a prototype of lambdas on top of method handle.
> http://weblogs.java.net/blog/forax/archive/2009/12/27/chistmas-gift
>
> The patches are here:
> http://cr.openjdk.java.net/~forax/lambda/<http://cr.openjdk.java.net/%7Eforax/lambda/>
>
> Rémi
>
>


More information about the lambda-dev mailing list