News for hackers. Stuff that matters.
Re:Ruby 3.2 preview 1 with support for WASM compilation by djur on Friday April 08, 2022 @12:16AM (#30953285)
They could easily add another regex flag to indicate a "safe" regex. That really isn't the problem here. The problem is that adding a safe regex engine doesn't retroactively fix the thousands and thousands of regexes in gems which can't be unilaterally forced over to the new engine.
Re:Ruby 3.2 preview 1 with support for WASM compilation by jatone on Monday April 11, 2022 @11:26AM (#30990115)
actually that is the problem. no they can't 'easily' add a new flag (or they would have). it doesn't fix the problem of being broken by default and any fundamental change in behavior will lead to problems as well.

the point is the language is broken fundamentally and because its syntax sugar there isn't anything you can do realistically. a function call can be replaced, deprecated, and then removed and all of that can be automated and be non-disruptive over a few releases.