News for hackers. Stuff that matters.
Re:JSR Is Not Another Package Manager by c-hendricks on Thursday April 25, 2024 @08:59AM (#40156970)
Are you saying typescript should parse regular expressions?

Turn on `noUncheckedIndexAccess` and it works as you expect (plus forces you to check all the places you're doing unchecked access).

https://www.typescriptlang.org/play/?noUncheckedIndexedAcces...

Re:JSR Is Not Another Package Manager by swift on Thursday April 25, 2024 @09:42AM (#40157476)
Regular expressions are part of the language, so it's not so unreasonable that TypeScript should parse them and take their semantics into account. Indeed, TypeScript 5.5 will include new support for syntax checking of regular expressions[1], and presumably they'll eventually be able to solve the problem the GP highlighted on top of those foundations.

[1]: https://github.com/microsoft/TypeScript/pull/55600

Re:JSR Is Not Another Package Manager by c-hendricks on Thursday April 25, 2024 @11:29AM (#40158728)
That's crazy, in the best way