News for hackers. Stuff that matters.
Re:ECMAScript proposal: String.prototype.replaceAll by DDR0 on Saturday December 21, 2019 @04:40PM (#21853494)
Could you provide an example of what this desugars to? I'm not sure I understand.
Re:ECMAScript proposal: String.prototype.replaceAll by pier25 on Saturday December 21, 2019 @11:41PM (#21855226)
You can simply use string.replace() with a global regex.
Re:ECMAScript proposal: String.prototype.replaceAll by minitech on Sunday December 22, 2019 @04:10AM (#21856069)
Dynamic patterns require escaping, resulting in unnecessary complexity and overhead.