2 ms·
Yesterday I was doing some debugging on the async/await downlevel support in Typescript and found myself exploring the ways Typescript lowers code in the source
by WorldMaker 9y ago
Yesterday I was doing some debugging on the async/await downlevel support in Typescript and found myself exploring the ways Typescript lowers code in the source itself (as much to satisfy curiosity as anything else, similar to this article series' experiments/explorations of the Roslyn codebase). In its case the similarities between Typescript itself and its target language provide a particularly interesting question of what counts as lowering to Typescript versus lowering to JS/ES, particularly in places where one becomes the other as JS/ES standardizes different pieces into the wild.
For Typescript "lowering" seems a more accurate term than "compiling" in just about all cases.