es-discuss Digest, Vol 41, Issue 9
brendan at mozilla.com
Sun Jul 4 00:30:34 PDT 2010
On Jul 3, 2010, at 10:27 PM, Leo Meyerovich wrote:
> Is object identity the inverse of hash?
No, merely the missing-from-the-standard-library egal function that you can write yourself. See
Mark answered on Object.hashcode already. Here's the old ES4 proposal:
It has the desired security properties, TC39 members agreed a couple of meetings ago. This helped break a logjam over adding unencapsulated Object.hashcode as a strawman (yet we still have no strawman page on it, just the ES4 page :-/).
A collection implementation will want an identity test to resolve collisions, but === isn't quite right. Wherefore egal, or let's call it Object.identity -- only if Object.hashcode is added too.
More information about the es-discuss