2 ms·
While my example isn't an issue in ES6, most of the controversial came from CoffeeScript. Using classes comes with classical inheritance expectations. In Coffee
by dmak 11y ago
While my example isn't an issue in ES6, most of the controversial came from CoffeeScript. Using classes comes with classical inheritance expectations. In CoffeeScript, changing class variables would carry through all instances, and that is unexpected from a classical inheritance point of view. However, it made complete sense in the compiled JS.
- jestar_jokin 11y agoMaybe I'm misunderstanding, but isn't that the same as static properties on classes in Java?