Template strings and templates

Axel Rauschmayer axel at rauschma.de
Fri Aug 3 22:23:29 PDT 2012


Not sure that something better than “template string” exists. It would have to be something that describes the construct well: It is an interesting hybrid between a literal (such as a regular expression) and a function call.

On Aug 3, 2012, at 23:38 , Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:

>> So switching to "template strings" is a good idea. We do need to communicate that they are not limited to strings, though: template parameters and tag results can be
>> arbitrary ES objects/values.
> 
> I chose "template string" over "string template"  to emphasize that it was a template that was expressed as a string rather than a template for a string.  That may be too subtle of a distinction.  At the TC39 there were some concerns that simply "template" was too general and might cause confusion relative to other templating mechanism. 

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120804/55c6bba3/attachment-0001.html>


More information about the es-discuss mailing list