equals and hashCode
brian.goetz at oracle.com
Tue Oct 30 10:26:29 PDT 2012
There's a section of the spec (not yet written) on the subject of "evaluation of lambda expressions", where those words will go. And words to that effect WILL go there -- just not written yet.
On Oct 30, 2012, at 11:37 AM, Aleksey Shipilev wrote:
> On 10/30/2012 05:12 PM, Brian Goetz wrote:
>> Yes, but not just equality; identity. Which is the real problem --
>> we're still coping with the consequences of having naively decided 17
>> years ago that all non-primitive values must have identity. (Work is
>> going on in JVM-land to give us a better option.)
> Great! Is there a notion in spec that lambdas are not supposed to have
> identity, and as such their equals()/hashCode() while available as
> default implementations, are meaningless?
More information about the lambda-dev