Simple maps/sets: parameterize the comparator?

Axel Rauschmayer axel at
Thu Dec 29 06:34:38 PST 2011

> We should probably avoid pressures for the build-ins to cover all possible use cases. In we will should have all the primitives necessary for JS programmers to define their own efficient collection objects, including various kinds of hash-tables.  Hopefully some good libraries of such will get written.
> I take it you are simply reiterating the desire for a standard system provided high entropy object-identity hash that is guaranteed to correspond to === and is.

I’m curious: Is it likely that such libraries will get written by the community? This domain does not seem to enjoy much interest. (I would volunteer, but have neither the necessary expertise/experience nor the time.)

Can we profit from prior work? The following comes to mind:

- “User-extensible sequences in Common Lisp”, Christophe Rhodes

- Programming languages with collection APIs (among many others): Smalltalk, Java

- Guava

Dr. Axel Rauschmayer
axel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list