Speaking of Lisp...

Yuh-Ruey Chen maian330 at gmail.com
Sun Feb 4 06:00:31 PST 2007

> Another item falling out of the ES4 spec: hashes mapping string to  
> value where the mapping is not polluted by Object.prototype.  A late  
> "save" may be possible, if anyone can suggest syntax.  E.g., var hash  
> = #{'foo':1, 'bar':2, 'baz':3}; alert('toString' in hash) => false.   
> Eek, yet another attempt to use #.

Would this new hashtable class derive from Object? If not, then in
strict mode, would the following work (using #{} as the hashtable syntax)?

var x: Object = #{'foo':1};

More information about the Es4-discuss mailing list