On Oct 3, 2011, at 10:17 AM, David Herman wrote:

> A couple reactions:
> 
> - strings are already interned in current engines for symbol-like 
> performance; there's no need to introduce symbols into the language

Is this really true?  It was my original assumption based upon string 
semantics. However, I was latter lead to believe that many engines don't 
routinely intern/canonicalize strings and hence string equality comparisons 
can't be assume to have the performance of  pointer comparisons.  For example, 
it was my understanding that SpiderMonkey uses interned strings for property 
lookup but that it doesn't necessarily intern non-property key strings??


Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to