News for hackers. Stuff that matters.
Re:TypeScript please give us types by andix on Friday July 07, 2023 @06:32PM (#36639138)
What's next? An official TypeScript UI framework, will it be Vue, React, Next.js or Svelte? An official TypeScript date library?
Re:TypeScript please give us types by scotty79 on Friday July 07, 2023 @08:53PM (#36640210)
What's the point of any of those?

Generating code based on type annotations is frequently requested feature directly related to the core feature of TypeScript which is type system.

Re:TypeScript please give us types by clansimus on Friday July 07, 2023 @09:32PM (#36640482)
I'll take an official WYSIWYG editor while we're at it
Re:TypeScript please give us types by pjmlp on Saturday July 08, 2023 @05:23AM (#36642773)
This is the curse of guest languages, after the initial adoption pain everyone wants idiomatic libraries and pretends the underlying platform doesn't exist.

Until they hit a roadblock caused by a leaky abstraction, that proves them otherwise.

Re:TypeScript please give us types by andix on Saturday July 08, 2023 @10:39AM (#36644849)
Type script does a very good job not to hide the underlying platform. In it's essence it is just a development time linter and does not interfere with the JavaScript runtime at all (except enums).

And I think that's actually the reason why it won the competition against Googles Dart. They even used Microsofts TypeScript for Angular instead of their own language Dart.

Re:TypeScript please give us types by pjmlp on Saturday July 08, 2023 @11:00AM (#36645031)
Indeed, and that is why the Typescript team is against any feature that steps away from that relationship.