symbols in template literals

Brendan Eich brendan at mozilla.org
Thu Sep 11 16:44:28 PDT 2014


Allen Wirfs-Brock wrote:
> I see this, as the first step on a path of considering every use of ToString in the spec. and deciding whether it would be ok to use "ToStringSymbolAllowed" instead.  And the possible result being that some places where symbols are allowed and some where they aren't.  And know body remember which is which. It's probably better to have a consistent rule with one explicit exceptions rather than a loosely applied rule with many exceptions.

And of course one might write obj[`${name}`] if we did allow conversion 
to string there, and oops.

/be


More information about the es-discuss mailing list