Updated State of the Lambda
Howard Lovatt
howard.lovatt at gmail.com
Mon Oct 18 19:39:24 PDT 2010
Glad to see the progress on Lambdas and the implementation - I will
try out the latest push when I get chance.
I have some reservations about changing the type of this, particularly
that it will make refactoring from Inner Classes to Lambdas and vice
versa error prone. May I suggest a further couple of changes that
might make refactoring more reliable:
1. SAM types can only be interfaces (you must use an inner class if
you want to inherit from and abstract class or class).
2. The specification defines what all Object's methods do for a
Lambda, in particular getClass, toString, equals, and hashCode, and
how instanceof behaves, is a Lambda an instance of MethodHandle is it
an instance of its SAM type?
Even with the above changes I can see confusion because of the
different meanings of this - therefore I have some reservations.
-- Howard.
More information about the lambda-dev
mailing list