2008/10/27 Brett Patterson <[EMAIL PROTECTED]>: > Yes. But, one final question. Was the first ever implementation of > JavaScript designed to be object-oriented, object-based, or prototype-based? > Thank you all.
The first implementation of JavaScript is still alive in the form of Mozilla SpiredMonkey, even though much of it has been changed since then. It was designed to be object oriented through usage of the prototypal inheritance scheme, so it's pretty much all three at once. Since everything in JavaScript is an object, it can be said to be object based as well as object oriented. Anthony Ziebell's argument that it's prototype-based rather than object oriented is a false dichotomy since prototypal inheritance is in fact one of the ways to achieve objevt orientation. As such, a system can become object oriented as a result of adding prototypal inheritance to an object based system. Anthony Ziebell is arguing that it's not object oriented based on the false premise that classical inheritance is the way to achieve object orientation and prototypal inheritance is not, despite himself linking articles stating the contrary. -- David "liorean" Andersson ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
