jamiebuilds / ghost-lang

:ghost: A friendly little language for you and me.
302 stars 10 forks source link

Regex interpolation #1

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago

WDYT of regex literal having a syntax for variable interpolation?

jamiebuilds commented 6 years ago

Regexes need to be compiled to work efficiently, I don't think it'd be good to make it easy to create horribly slow regexes.

aleclarson commented 6 years ago

JIT optimization doesn't help with that? Interesting

jamiebuilds commented 6 years ago

Heh... I will have to actually start working on the compiler before I can say if this will have reasonable performance characteristics or not. But it's never going to have great performance.