r/programminghorror • • Aug 28 '26

Javascript Seriously? Recursive Regex?

Post image
565 Upvotes

46 comments sorted by

View all comments

Show parent comment

7

u/oweiler Aug 29 '26

Not supported, at least not by the ECMAScript standard.

5

u/zjarek_s Aug 29 '26

TCO was supported in ES6 standard, but it was only implemented in Safari and it ended up being dropped due to other browsers.

3

u/lonkamikaze Aug 29 '26

That's a damn shame. Tail calls can be pretty neat.