Re:GNU ease.js
by news_to_me on Wednesday March 26, 2014 @05:47PM
(#7476894)
Why? Javascript isn't class based. Why not embrace the paradigm of the language you're using?
[ Parent
| on HN ]
Re:GNU ease.js
by TazeTSchnitzel on Wednesday March 26, 2014 @05:56PM
(#7476933)
ES6 adds minimal JS classes, which I'm a fan of. They're just syntactic sugar over:
Animal = function () {};
Dog = function () {};
Dog.prototype = Object.create(Animal);
But this? This is an abomination.
Re:GNU ease.js
by kybernetikos on Wednesday March 26, 2014 @06:22PM
(#7477077)
that's Object.create(Animal.prototype), and they do add a little more, like a working 'super', and getting the .constructor property right.