Quasis: assignable substitutions?

Axel Rauschmayer axel at rauschma.de
Thu Jun 16 16:05:26 PDT 2011


http://wiki.ecmascript.org/doku.php?id=harmony:quasis

re_match`foo (${=x}\d+) bar`

How do these work? Are the changes that re_match makes written back to x? I can image a solution if substitutions were given to the handler as an array, but not if they are given as trailing parameters.

Thanks!

-- 
Dr. Axel Rauschmayer

axel at rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com





More information about the es-discuss mailing list