14 ms·
JavaScript's prototypes really are poorly designed, though. To see how it probably should have been done, check out the programming language Io (http://iolangua
by walrus 14y ago
JavaScript's prototypes really are poorly designed, though. To see how it probably should have been done, check out the programming language Io (http://iolanguage.com/ http://iolanguage.com/) or Douglas Crockford's note on prototypal inheritance in JavaScript at http://javascript.crockford.com/prototypal.html http://javascript.crockford.com/prototypal.html (specifically, the 2008-04-07 update).