|
|
|
|
|
by donatj
1609 days ago
|
|
The reasoning behind most of this, that the output JS is not a strict subset of the input is silly and imho represent a misunderstanding of what Typescript is going for. It’s a full fledged language that compiles to readable JS, not just annotated JavaScript. There are many features in Typescript where it simply isn’t just outputting a subset of the input, and many of them are the best parts of Typescript. If you just want JavaScript with types, there are other languages that do that, but Typescript offers so much more. |
|
It's pretty what TypeScript's going for though:
> Avoid adding expression-level syntax.
https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...