Quasi-literals for templating?

Brendan Eich brendan at mozilla.com
Wed Jun 15 22:37:13 PDT 2011

On Jun 15, 2011, at 10:25 PM, Mike Samuel wrote:

> 2011/6/15 Brendan Eich <brendan at mozilla.com>:
>> On Jun 15, 2011, at 9:51 PM, Brendan Eich wrote:
>> My two cents: Ruby (with #{...} in its interpolated quasi-literal strings)
>> and other languages allow pretty arbitrary expressions. The lexical issues
>> are not insuperable. We are not really playing it "safe" by making narrow
>> restrictions (such as Identifier expression only, or dotted identifier
>> member expression only), so much as simplifying our spec work. Not even the
>> drafting, which IIRC Mike already did. Rather, the validation that we would
>> need to do.
>> I think we should step up, validate MIke's work, and formalize it fully. I
>> thereby summon Waldemar. ;-)
> What can I do to make this easier?

Not clear. Validate that you do not get confused by any } in a quoted context in ES5.1, somehow. Convince Waldemar that your validation is sound. I'll buy you a Vegas vacation (kidding, Google can pay :-P).


More information about the es-discuss mailing list