On 28 Jan 2015, at 00:06, Brendan Eich bren...@mozilla.org wrote:
Axel Rauschmayer wrote:
It may make sense to add them. Their identifiers would have to be as
unambiguous as possible, e.g. URIs such as
http://ecmascript.org/symbol/foo;.
Symbol.iterator and the other well-known symbols
!
-- Cyrus
*From:* Kevin Smith [mailto:zenpars...@gmail.com]
*Sent:* Wednesday, January 21, 2015 5:16 PM
*To:* Cyrus Najmabadi
*Cc:* Jason Freeman; es-discuss
*Subject:* Re: Question about Symbols and GlobalSymbolRegistry
Am I understanding correctly?
Yes. The argument to the Symbol
...@gmail.com]
Sent: Wednesday, January 21, 2015 5:16 PM
To: Cyrus Najmabadi
Cc: Jason Freeman; es-discuss
Subject: Re: Question about Symbols and GlobalSymbolRegistry
Am I understanding correctly?
Yes. The argument to the Symbol constructor is just a descriptive string
Axel Rauschmayer wrote:
So there's no need for this
There is one use case (admittedly a rather hypothetical one):
serializing the Symbol.* symbols to a text format (e.g. an encoding in
JSON).
Symbols that user-code puts into the registry do not serialize this way,
so why should the
!
-- Cyrus
From: Kevin Smith [mailto:zenpars...@gmail.com mailto:zenpars...@gmail.com]
Sent: Wednesday, January 21, 2015 5:16 PM
To: Cyrus Najmabadi
Cc: Jason Freeman; es-discuss
Subject: Re: Question about Symbols and GlobalSymbolRegistry
Am I understanding correctly
Axel Rauschmayer wrote:
It may make sense to add them. Their identifiers would have to be as
unambiguous as possible, e.g. URIs such as
http://ecmascript.org/symbol/foo;.
Symbol.iterator and the other well-known symbols are self-same in all
connected realms. See
Hi,
I am reading the Symbol section of the ES6 spec (19.4), and my understanding is
that calling the Symbol constructor does *not* add an entry to the
GlobalSymbolRegistry. Is that correct?
For example:
var s1 = Symbol(foo);
var s2 = Symbol.for(foo);
In this example, s1 and s2 would be two
Correct. The registry is only accessed via `Symbol.for(key)` and
`Symbol.keyFor(sym)`. The parameter of `Symbol()` is a description, not a key.
On 22 Jan 2015, at 01:36, Cyrus Najmabadi cyr...@microsoft.com wrote:
Hi,
I am reading the Symbol section of the ES6 spec (19.4), and my
Am I understanding correctly?
Yes. The argument to the Symbol constructor is just a descriptive string.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
9 matches
Mail list logo