The defining feature of symbols is that they are unguessable, but this
feature is useless in the context of "unique symbols", since one can always
just get to the symbol by property inspection.  As such, symbols appear to
provide no benefit over strings for this use case.

In fact, unique strings provide a useful feature that symbols do not:  they
need not be associated with any runtime execution context.  We can define a
well-known unique string and share it across realm boundaries.  We can also
share these keys across version boundaries, such that many versions of a
library can recognize the same key.

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

Reply via email to