On Fri, Oct 24, 2008 at 8:16 AM, <[EMAIL PROTECTED]> wrote: > > If you ask people who are truly expert with JavaScript, they will all > tell you that it _is_ Object-Oriented, not least because it is entirely > object-based: the first rule of JavaScript is: "Everything is an object. > A function is an object, a string is an object, and an array is an > object." >
I hate to throw another buzzword into the mix, but in a language where every data structure is an object, even the primitives, like Java, we call that "Object-Based," not Object-Oriented. That's because no matter what you do, you are always forced to use objects. In Java, even if you just want to print "Hello World," you have to create an object, define it's main method, and call a method of the System object. I don't think Javascript is Object-Based, because I can just write a function that prints instead of using an object. And even though Javascript has objects, I think the style of writing it is more accurately described by the prototype model. -- -- Christian Montoya christianmontoya.net ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
