@TheDuffmaster to Programmer [email protected] • 8 months agoSwitching to OCaml boisimagemessage-square89arrow-up1413arrow-down125
arrow-up1388arrow-down1imageSwitching to OCaml bois@TheDuffmaster to Programmer [email protected] • 8 months agomessage-square89
minus-square@[email protected]linkfedilink1•8 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-square@[email protected]linkfedilink2•8 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.