String identity template tag
Isiah Meadows
isiahmeadows at gmail.com
Thu Dec 13 08:29:31 UTC 2018
I like `String.cooked`, especially considering `String.raw` already
basically does this, just using `template.raw` instead of `template`.
-----
Isiah Meadows
contact at isiahmeadows.com
www.isiahmeadows.com
On Thu, Dec 13, 2018 at 3:23 AM Claude Pache <claude.pache at gmail.com> wrote:
>
> Random suggestions:
>
> * `String.cooked`, which pairs well with already existing `String.raw`
> * `String.vanilla`
> * `String.plain`
> * `null`, i.e., using a null (or undefined) value as tag before a template literal is equivalent to using no tag. (Con: not polyfillable)
>
> —Claude
>
More information about the es-discuss
mailing list