Michael McGlothlin wrote:
I'm only seeing a couple comments there - was that all or am I missing something?
Did you read the note about security?
I think hashes as an overwritable method that returns a number is pretty standard and let's you combine member hashes with simple Bitwise ops. Could have on value types and a default on Object that would combine hash of own props that were value types or frozen.
As others noted, WeakMap sucks a lot of the O2 away from any hashcode proposal.
Map and Set do need a way for objects (not value types) to hash and compare, IMHO, but that was deferred to ES7/2016 or later.
/be _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss