Method Pointers
Howard Lovatt
howard.lovatt at gmail.com
Mon Feb 27 11:51:38 PST 2012
The method pointers are probably doing something I don't understand judging by your comment that arguments need to be reconstructed. Do you have time to expand on the comment?
Cheers,
-- Howard.
Sent from my iPad
On 28/02/2012, at 2:57 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
>> 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
mailing list