Implementing recursive lambda with MethodHandle
Alex Buckley
Alex.Buckley at Sun.COM
Mon Mar 1 14:43:57 PST 2010
Neal Gafter 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.
Right. Though I would say that because function types are not class
types, inheritance is not the right mechanism. It is necessary to
specify that a function type implicitly declares methods like Object's
public methods, akin to what interface types do.
Alex
More information about the lambda-dev
mailing list