Open conartist6 opened 3 months ago
Typescript's non-spec decorators implementation would become a similar runtime landmine if JS runtimes support both early-days TS syntax and final-release annotations
Not supporting TS syntax is providing valuable practical protection against these kinds of issues.
If type syntax support is added, much existing TS code will become valid JS overnight. Most of this will be safe, but there will be subtle bugs and failures related to the TS
downlevelIteration
setting, which can cause TS to treatfor .. of
as meaningfor (let i = 0; i < arr.length; i++);