Well, yes, you are right, I am blushing now. :)

Still, that expression literal is "compiled" when the script is loaded, or so 
[I 
read](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).
 It also says that this could give a performance improvements, although 
thinking about it now, I guess it will not be much of an improvement (it just 
moves time of "compiling" the regex to load time instead of runtime).

So I guess there might not be much of an incentive to support this for JS (I 
could just use the regular construct in a `func re`). Still curious to see if 
it is possible to support this with Nim FFI, though.

Reply via email to