3 ms·
To me it doesn't matter that typescript replaces js because TS is forwards and backwards compatible, something nobody else is really attempting. typescript (un
by shouldbworking 9y ago
To me it doesn't matter that typescript replaces js because TS is forwards and backwards compatible, something nobody else is really attempting.
typescript (unlike Babel) is designed to output JavaScript that's as close as possible to what a human would write. If you get tired of Typescript you just transpile your code down to js one last time and forget about it.
Look at the output of Babel vs Typescript and you'll see what I mean about human friendliness. IMO the best tools are the ones easy to get rid of and typescript definitely scratches that itch.
- dotancohen 9y ago> the best tools are the ones easy to get rid of Thank you, you've just summed up the entire proprietary vs FOSS debate _and_ the bus factor in a way that anybody could understand! I am definitely going to be repeating this wisdom!
- woah 9y agoBabel actually started with the express goal of outputting human-readable Javascript. It obviously hasn't stayed that way. IMO, Typescript hasn't stayed that way either. Trying to shoot for a compilation target that is useable as source code is pretty foolish. The nice thing about Flow is that the compilation step is nothing more than stripping out the typing syntax. It is ACTUALLY easy to get rid of. I will say that the tooling is way better in Typescript.