Implicitly escaped $ (or not) in quasis?

Dio Synodinos synodinos at gmail.com
Tue Jun 26 13:16:59 PDT 2012


On Tue, Jun 26, 2012 at 2:48 PM, Erik Arvidsson <erik.arvidsson at gmail.com>wrote:

> On Tue, Jun 26, 2012 at 9:19 AM, Allen Wirfs-Brock
> <allen at wirfs-brock.com> wrote:
> > So, I propose that we go with alternative 2.  Thoughts?
>
> It makes me sad to not support $foo. Would it be too confusing to only
> support a subset of the identifiers in this form? FWIW, Dart does not
> allow identifiers with $ in this form, and requires you to use ${
> jqueryLikes$Signs } when you need "strange" identifiers.
>
> http://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h.us5hu2wpthk4



I'd have to agree with Erik and say that having EcmaScript not support
$identifier
substitution as most other languages and frameworks I'm familiar with do,
would feel awkward. Especially if it means using 2 additional characters,
just to protect against edge-cases.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120626/593761ae/attachment.html>


More information about the es-discuss mailing list