Speaking of Lisp...
jeff at thefirst.org
Fri Jan 5 22:57:12 PST 2007
Brendan Eich wrote:
> Suppose ES4 adds a Hash or Dict class. Would there be demand for
> initialiser syntax, because a common use-case is a constant or
> pre-filled (whether mutated later or not) mapping?
> Any thoughts on value vs. string key?
I'm not sure if this is what you're asking, but Python, Java, etc. let
you override the hash function that is used for hash maps.
And this of course lets you create hash keys other than a string.
Does/will ES4 let you override the hash function and would that address the problem?
More information about the Es4-discuss