cm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agoJavaScriptlemmy.mlimagemessage-square43linkfedilinkarrow-up121arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up121arrow-down1imageJavaScriptlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square43linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up1·3 days ago“Use a different language” is a common defense of javascript, but kind of a weird one.
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up0·3 days agoNot really, considering Typescript only adds static types to JS. It’s not a different language, it’s an extension.
minus-squareQuibblekrust@thelemmy.clublinkfedilinkEnglisharrow-up1·3 days agoSince it needs to be compiled to JavaScript in order to be used, I kind of consider it a different language. Yes, it’s a strict superset of JavaScript, but that makes it different.
“Use a different language” is a common defense of javascript, but kind of a weird one.
Not really, considering Typescript only adds static types to JS. It’s not a different language, it’s an extension.
Since it needs to be compiled to JavaScript in order to be used, I kind of consider it a different language. Yes, it’s a strict superset of JavaScript, but that makes it different.