4 ms·
The worst part about abstracting JS to classical inheritance (ex, CoffeeScript classes) is that the concepts do not match 1 to 1. If you try to create class var
by dmak 12y ago
The worst part about abstracting JS to classical inheritance (ex, CoffeeScript classes) is that the concepts do not match 1 to 1. If you try to create class variables, you will quickly run into closure issues which are clearly obvious in the compiled JavaScript.
JavaScript uses prototype inheritance and can fake classical inheritance, but it has its limitations.