Nested Quasis

Erik Arvidsson erik.arvidsson at
Sat Jan 28 16:15:07 PST 2012

On Sat, Jan 28, 2012 at 16:07, Brendan Eich <brendan at> wrote:
> This is really relaxing the (over-restrictive, IMHO) design that says that
> for ${expr} in a quasi, expr can be only a very few forms such as
> Identifier, Identifier '.' IdentifierName, and the like -- right?

Yes. Only allowing IdentifierExpression and MemberLookup is too
restrictive. A realistic use case is to allow binary operator and once
you allow that it makes sense to allow any expression which includes
other quasi literals which leads to the conclusion that nested quasi
literals should be allowed.


More information about the es-discuss mailing list