Re: Why does Symbol.for and Symbol.keyFor are limited to strings?

2015-01-02 Thread Allen Wirfs-Brock

On Jan 2, 2015, at 9:18 AM, Michał Wadas wrote:

 What is reason behind restricting entries in global symbol registry to
 be indexed only by strings?

What are the use cases for anything other strings?

Allen
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


Why does Symbol.for and Symbol.keyFor are limited to strings?

2015-01-02 Thread Michał Wadas
What is reason behind restricting entries in global symbol registry to
be indexed only by strings?
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


RE: Why does Symbol.for and Symbol.keyFor are limited to strings?

2015-01-02 Thread Gary Guo
Why not? Symbol's [[Description]] internal slot is string

 Date: Fri, 2 Jan 2015 18:18:55 +0100
 Subject: Why does Symbol.for and Symbol.keyFor are limited to strings?
 From: michalwa...@gmail.com
 To: es-discuss@mozilla.org
 
 What is reason behind restricting entries in global symbol registry to
 be indexed only by strings?
 ___
 es-discuss mailing list
 es-discuss@mozilla.org
 https://mail.mozilla.org/listinfo/es-discuss
  ___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss