News for hackers. Stuff that matters.
Re:The Two Factions of C++ by paulddraper on Monday November 25, 2024 @01:06PM (#42238488)
Enums and namespaces are the only runtime features of TypeScript.

So, yes, you can't just strip types, but it's close.

Re:The Two Factions of C++ by EE84M3i on Monday November 25, 2024 @01:37PM (#42238799)
Is there a comprehensive list of such incompatibilities documented somewhere?
Re:The Two Factions of C++ by judofyr on Monday November 25, 2024 @04:24PM (#42240362)
Re:The Two Factions of C++ by paulddraper on Monday November 25, 2024 @05:08PM (#42240657)
That's not the same.

That guarantees that the types do not determine the output (e.g. no const enums), not that you can "strip" types to get the same output.

Re:The Two Factions of C++ by paulddraper on Monday November 25, 2024 @05:07PM (#42240647)
Not that I'm aware of.

Decorators would be another example. (Though they have always been marked experimental.)

And of course JSX, but that's not a TypeScript invention.