News for hackers. Stuff that matters.
Re:NPM and NodeJS should do more to make ES Modules easy to use by jeswin on Thursday June 20, 2024 @09:58AM (#40738864)
> I’m surprised TypeScript hasn’t succumbed to the pressure to support that syntax

They won't do this without consensus in TC39. They shouldn't either; that'd be worse than this niggle.

Re:NPM and NodeJS should do more to make ES Modules easy to use by ComputerGuru on Thursday June 20, 2024 @10:01AM (#40738898)
Whether they should or not and whether that would be bad or not depends on how close of a relationship you believe should/does exist between TypeScript and JavaScript l, specifically in the TS to JS direction.

If I said language foo that isn’t TS but transpiled to JS all the same was considering that syntax, people might have a different opinion.

Re:NPM and NodeJS should do more to make ES Modules easy to use by WorldMaker on Thursday June 20, 2024 @11:16AM (#40739686)
Since Typescript 1.0 it has mostly taken the path of wanting to follow TC-39's standards rather than lead them. The most notable exception was an experimental flag for decorators at too early of a stage that's currently playing out in a compatibility war between the too many projects depending on the experimental flag in Production builds versus the actually standardized behavior.

Between that and some remaining warts from <1.0 mistakes/incorrect assumptions, there's plenty of evidence that it is a good thing that other than its type system TS focuses on following standards rather than trying to lead them.

There's a place for the language "foos" that want to lead and champion new standards. As an ecosystem we all seem to benefit from Typescript not being that language (anymore, mostly not since 1.0 with the few obvious mistakes aside). It's a part of what makes Typescript trustworthy as Production tooling. It's also what helps make Typescript mostly "cheap" and "unextraordinary" in Production build pipelines.

Re:NPM and NodeJS should do more to make ES Modules easy to use by pjmlp on Friday June 21, 2024 @02:17AM (#40746707)
This was a great decision, and what distinguishes Typescripts from other guest languages, by constraining themselves with being a linter and compiler, it is the same world.

Not a two world reality where the guest language has its own mini-platform and tooling, on top of the actual platform.