String identity template tag

Allen Wirfs-Brock allen at
Thu Dec 13 19:00:07 UTC 2018

> On Dec 13, 2018, at 10:37 AM, T.J. Crowder <tj.crowder at> wrote:
> Fair enough, but the primary use of this function is *not* using it as a tag function, but rather as a normal function. It doesn't make sense to use it as a tag function, the result is the same as an untagged template. The only use case I could see for using it as a tag function is if you were selecting from several tag functions at runtime and needed a "no-op" option.
> But called normally, it's a useful helper, for instance in Isiah's `escape` (where I assume the literal strings are already trusted, the substitutions are not):


The primary use case is not as a tag function but as a helper and it should be named accordingly.

My suggestion: String.interpolate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list