Hacker News new | ask | show | jobs
by hellcow 1085 days ago
The complaint is that Typescript not emitting any of the type information for the runtime means every library must reimplement the whole TS type system.
1 comments

Yes, that's true, they could support emitting metadata with explicit keyword which would help and wouldn't bloat anything implicitly, they already do emit code for enums for example.

Personally I'm fan of not introducing new language that runs at comp time, just use the same language to have macros and operations on types for free - just like Zig does it.

Typescript type system is already turing complete so it's not like they'd be loosing anything there.