String.substitute

Claude Pache claude.pache at gmail.com
Wed Aug 12 16:04:45 UTC 2015


> Le 12 août 2015 à 17:35, Edwin Reynoso <eorroe at gmail.com> a écrit :
> 
> 
> (...) and this discussion led me to know that this could allow a way to interact with the parser on call, which IMO could be useful.

JavaScript has already a built-in feature for interacting with the parser at runtime: It’s called `eval`. (And note that, since placeholders in template literals can contain arbitrary code, you do need the full power of `eval`.)

—Claude




More information about the es-discuss mailing list