4 ms·
Have you actually tried it? Seems like the people who actually have found it a little more complicated than that (see http://discuss.atom.io/t/coffeescript---e
by shadowmint 12y ago
Have you actually tried it?
Seems like the people who actually have found it a little more complicated than that (see http://discuss.atom.io/t/coffeescript---extends-vs-util-inherits-inheritance-in-js/2536 http://discuss.atom.io/t/coffeescript---extends-vs-util-inhe...).
To quote the post:
The difference is important. CS copies functions from parent to child on top of
setting the prototype while the std library just does the latter. Inheriting from
require("atom").View breaks without doing this manually (which isn't obvious at all).
If this is not being done for performance, it should be documented; otherwise, those
methods should be moved to the prototype.