3 ms·
> - Prototypal rather than classical inheritance, Meh. Javascript looks, feels and behaves much more like a single-inheritance class-based language (without th
by masklinn 14y ago
> - Prototypal rather than classical inheritance,
Meh. Javascript looks, feels and behaves much more like a single-inheritance class-based language (without the class sugar) than like a prototype-based one (Io and even more so Self). Especially if you stick to the standard.
A small concession was made towards prototypal use in ES5 with Object.create (which remains little used and slow as molasses) but it's looking to snap back to classes with ES6
- jarek-foksa 14y agoES6 will introduce class syntax, but it's also going to standardise __proto__ property [1] making it easier to write both classical and prototypical code. [1] http://javascript.spec.whatwg.org/#object.prototype.__proto__ http://javascript.spec.whatwg.org/#object.prototype.__proto_...