cm0002@lemmings.world to Programmer Humor@programming.dev · 2 months agoWhy I always keep doing it...lemmy.worldimagemessage-square67fedilinkarrow-up1591arrow-down17
arrow-up1584arrow-down1imageWhy I always keep doing it...lemmy.worldcm0002@lemmings.world to Programmer Humor@programming.dev · 2 months agomessage-square67fedilink
minus-squareCookieOfFortune@lemmy.worldlinkfedilinkarrow-up1·2 months agoNo a compiler just translates from one language into another. Transpilers are a type of compiler.
minus-squareepyon22@sh.itjust.workslinkfedilinkEnglisharrow-up1·2 months agoTypescript is transpiled into JavaScript. It’s not a whole new language just additions to JavaScript.
minus-squareCookieOfFortune@lemmy.worldlinkfedilinkarrow-up1·2 months agoA transpiler is a compiler. And it doesn’t have to convert from one language to another to be considered a compiler.
No a compiler just translates from one language into another. Transpilers are a type of compiler.
Typescript is transpiled into JavaScript. It’s not a whole new language just additions to JavaScript.
A transpiler is a compiler. And it doesn’t have to convert from one language to another to be considered a compiler.