3 ms·
"Irresponsible" is a bit of an overstatement, don't you think? The TS team explicitly says their goal is to generate readable JS, unlike (for example) Clojure o
by smt88 8y ago
"Irresponsible" is a bit of an overstatement, don't you think? The TS team explicitly says their goal is to generate readable JS, unlike (for example) Clojure or Scala.
Also, the async/await thing isn't an issue if you target the latest ECMAScript version. That's the only really ugly thing, and it's been easily avoidable for over a year.
- h1d 8y agoReadable JS doesn't mean, convert back to the file in the format you used to for editing. That comment could make people throw away the original and end up with machine generated code when going back.
- smt88 8y agoHave you read transpiled TS before? It's sometimes almost identical to the source. It's as close as you can get to just removing the static typing. Variables have the same names, for example. I used to have a problem where I'd be debugging the JS instead of TS file because visually, they were almost identical.