TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoSwitching to OCaml boislemmy.worldexternal-linkmessage-square83fedilinkarrow-up1411arrow-down124
arrow-up1387arrow-down1external-linkSwitching to OCaml boislemmy.worldTheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square83fedilink
minus-squaretoastal@lemmy.mllinkfedilinkarrow-up2arrow-down1·1 year agoProving that adding the class keyword to the ECMAScript spec was a mistake that leads folks down a path they should not travel 🙃
minus-squareel_abuelo@lemmy.mllinkfedilinkarrow-up2·1 year agoI completely agree. I taught JS/TS for 5yrs and I always emphasised that the ‘class’ keyword was just syntactic sugar for what was already available in prototype inheritance of JS.
Proving that adding the
classkeyword to the ECMAScript spec was a mistake that leads folks down a path they should not travel 🙃I completely agree. I taught JS/TS for 5yrs and I always emphasised that the ‘class’ keyword was just syntactic sugar for what was already available in prototype inheritance of JS.