Question about Symbols and GlobalSymbolRegistry
Axel Rauschmayer
axel at rauschma.de
Tue Jan 27 15:13:28 PST 2015
> On 28 Jan 2015, at 00:06, Brendan Eich <brendan at 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 are self-same in all connected realms. See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-well-known-symbols.
>
> 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).
> (and URLs suck for such things; plus, you probably mean URIs, but I don't care enough to check!).
Yes, I mean URIs(?)
--
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150128/ad708593/attachment.html>
More information about the es-discuss
mailing list