top | item 30076254

(no title)

andreypopp | 4 years ago

Well... How many paid work hours spent on tsc? Then does TypeScript have a formal language specification? I'm pessimistic it's possible to rewrite tsc with full compat (bug-to-bug, otherwise it doesn't really make much sense) without MS support... but who knows... I'd like fast compiles too, so good luck!

discuss

order

paavohtl|4 years ago

A formal specification would be basically useless, if nothing guarantees that the reference implementation actually follows it. Sharing & contributing to the same test suite is a much more practical approach.

quickthrower2|4 years ago

As a smoke you can swap it in for a lot of the npm ecosystem and run the tests of those projects on the compiled code.

andreypopp|4 years ago

Specification isn't being followed is of course useless. But yeah, tests are definitely useless and in the absence of the spec is the only sane way to approach such rewrite.