TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 6 months agoSwitching to OCaml boislemmy.worldimagemessage-square36fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageSwitching to OCaml boislemmy.worldTheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml · 6 months agomessage-square36fedilink
minus-squaretoastal@lemmy.mllinkfedilinkarrow-up0·6 months 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-up0·6 months 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
class
keyword 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.