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 http://wiki.ecmascript.org/doku.php?id=strawman:egal Mark answered on Object.hashcode already. Here's the old ES4 proposal: http://wiki.ecmascript.org/doku.php?id=proposals:hashcodes 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. /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

