Implementing recursive lambda with MethodHandle
John Nilsson
john at milsson.nu
Wed Feb 24 10:17:28 PST 2010
On Wed, Feb 24, 2010 at 12:58 AM, Neal Gafter <neal at gafter.com> wrote:
> I think it is fine for values of function type to inherit these
> methods from Object, and for getClass() to return MethodHandle.class
> or the class of some compiler-generated implementation object.
>
Fair enough. Just to finish the train of thought. I feared that having
lambdas be objects will constrain the runtime representation options in a
manner that will exclude some optimizations or just add unwanted overhead.
OTOH I wouldn't have the first clue about how the JVM actually handles this
so I wouldn't be surprised to be wrong.
In the end I would want to use lots of lambdas for all kinds of stuff
without fear of adding performance issues.
BR,
John
More information about the lambda-dev
mailing list