C. Scott Ananian ecmascript at
Fri Jun 12 20:16:25 UTC 2015

@Alexander Jones: no new syntax is needed to implement what you want; we
already have Template Strings.  For example, you could define a new
function `RegExp.join` (which takes either an array or a string as its
first argument, see below):

var pattern = RegExp.join`^(abc${ "someString, escaped" }|def${ /a reg|exp/
// apply flags?
var pattern = RegExp.join('x')` abc | def \$`;

`RegExp.escape()` would be used internally to handle the interpolation of
an string into the regexp.  But these features are orthogonal.

On Fri, Jun 12, 2015 at 2:57 PM, Juriy Zaytsev <kangax at> wrote:

> I made this gist back in the days —
> — and I believe Rick was going to bring it up at one of the meetings. I
> don't have time to set up repo and work with TC39 member so if you can
> continue carrying that torch, that would be awesome!
> --
> kangax
> On Fri, Jun 12, 2015 at 2:52 PM, Benjamin Gruenaum <benjamingr at>
> wrote:
>> You know what? Why not. I'm going to try to champion this.
>> I talked to Domenic and he said he's willing to help me with this which
>> is a big help (this would be my first time).
>> I'll open a GitHub repo and see what I can come up with.
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list