W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

Re: Reviving E4X (H4E)?

From: ☻Mike Samuel <msamuel@google.com>
Date: Wed, 19 Oct 2011 17:19:04 -0500
Message-ID: <CAHBJ-b=mjvjOdho_9R0GBQSesVFiDbQUa8mXxM8s0OY+hHL_Ag@mail.gmail.com>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
Cc: Brendan Eich <brendan@mozilla.org>, "Mark S. Miller" <erights@google.com>, Alex Russell <slightlyoff@google.com>, Anne van Kesteren <annevk@opera.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Rafael Weinstein <rafaelw@google.com>, Adam Klein <adamk@google.com>, Erik Aarvidson <arv@google.com>
On Wed, Oct 19, 2011 at 16:56, Allen Wirfs-Brock <allen@wirfs-brock.com> wrote:
> On Oct 19, 2011, at 1:55 PM, ☻Mike Samuel wrote:
>> I'm happy with either "string interpolation" or "template".  I can't
>> find "template" in FutureReservedWord, but I thought it was in there.
>> If so it would be odd to have a language feature named "template" but
>> not have any relation to the future reserved word.
> There are a lot of concepts in JS that don't have corresponding reserved words.  Object is one that comes immediately to mind. Quasi also isn't a reserved word, but so what.

I wasn't suggesting that it should have a corresponding reserved word,
just that any correspondence in name only might be confusing.

> I also suspect that "string interpolation" would also be scary to significant subset of JS programmers.

Isn't there a significant overlap between Javascript users and (Perl |
PHP | ruby) users?  Each of those languages has string interpolation.

PHP calls them "parsed strings":
Perl calls it "interpolation":
Ruby calls it  "interpolation":
Received on Thursday, 20 October 2011 09:05:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC