Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe02.iad.POSTED!8ad76e89!not-for-mail From: Arved Sandstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: new Java lambda syntax References: <9j3vj8-aqe.ln1@news.simpsonst.f2s.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Lines: 29 Message-ID: X-Complaints-To: abuse@newsgroups-download.com NNTP-Posting-Date: Wed, 14 Sep 2011 09:29:10 UTC Organization: Public Usenet Newsgroup Access Date: Wed, 14 Sep 2011 06:29:09 -0300 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8013 On 11-09-13 11:36 PM, Joshua Cranmer wrote: [ SNIP ] JS doesn't support OO in the classical > way, and how `this' gets resolved is actually handled by the way you > call the method. [ SNIP ] I point out somewhat tongue-in-cheek that JavaScript indeed isn't "classical" OO, since it's not class-based OO; rather it's object-based (prototype-based) OO. I think the argument can be made that it's a purer and more fundamental object-orientation, since you dispense with the class baggage. I confess to being seriously biased: lots of experimentation with non-Web JS programming, and Self and Lua programming. And certainly some strengths of Scala lead one to think more about runtime objects and not so much about instances of classes. Even though "classical" is strictly speaking a correct description of class-based OO, I sort of prefer "dominant" or "original". Or just "class-based". Again revealing my bias, I think class-based OO has done some degree of harm to object-oriented programming, so I am reluctant to associate it with a word like "classical". AHS -- job creator: US Republican term for a wealthy party contributor