brian.goetz at oracle.com
Mon Feb 27 07:57:23 PST 2012
> On the other hand, I really like Howard's proposition of comparing
> lambdas by checking equity of each captured value. If I understand
> correctly, it seems that a proper equals() method could be generated
> without any runtime costs
The part about "no runtime costs" is not correct. Requiring a "proper"
equals method imposes the requirement that the captured args be able to
be reconstituted on demand, which likely has additional costs for
capture and/or footprint.
I'm not saying this is not desirable, I'm just saying don't kid yourself
that its free.
More information about the lambda-dev