3 ms·
why not just make JavaScript engines like node and browsers strip out TypeScript? Hide it under a flag if you want, it’s developers who are debugging who would
by armchairhacker 5y ago
why not just make JavaScript engines like node and browsers strip out TypeScript? Hide it under a flag if you want, it’s developers who are debugging who would benefit from that the most.
I mean this is a great idea, removing one more of the many many complexities in simply getting a nodejs package to browser and debugging (getting accurate source info and avoiding transpile errors are a PITA). JavaScript is an interpreted language yet 90% of the time it’s not even run interpreted. But “a proposal for Type Syntax in JavaScript” when TypeScript and JSDoc exist is just confusing and redundant.
- MBCook 5y agoBut isn’t that what this is? Just an agreed upon way of specifying type info so browsers can be taught to ignore it instead of having to strip it at build time to produce something the browsers can parse?
- deleted 5y ago[deleted]