6 ms·
Erlang's creator, Joe Armstrong, said "Erlang might be the only object oriented language because the 3 tenets of object oriented programming are that it's based
by pmontra 11y ago
Erlang's creator, Joe Armstrong, said "Erlang might be the only object oriented language because the 3 tenets of object oriented programming are that it's based on message passing, that you have isolation between objects and have polymorphism." (Third point at http://www.infoq.com/interviews/johnson-armstrong-oop http://www.infoq.com/interviews/johnson-armstrong-oop)
So maybe OO is not that bad, it's the so called OO languages that didn't go all the way to implement it properly. Still they've been very successful so far. It means that many people liked what they had to offer. This might be about to change even quickly but I won't be so harsh agaist what we have under our fingerprints now. Not perfect but not a disaster.
- cbd1984 11y agoNobody can agree on what OO is: http://c2.com/cgi/wiki?DefinitionsForOo http://c2.com/cgi/wiki?DefinitionsForOo http://c2.com/cgi/wiki?NobodyAgreesOnWhatOoIs http://c2.com/cgi/wiki?NobodyAgreesOnWhatOoIs (Of course, I mean that "Everyone knows precisely what OO is, but if you get enough of them in the same room you see distinct camps forming, each with their own definition of OO which is incompatible in some respect with the definition every other camp has.")
- rasur 11y agoWhat about Smalltalk? Possibly the only other Object-Oriented language?
- marvel_boy 11y agoSure, Smalltalk is the only OO language: message-passing, isolation and polymorphism. Java was a pathetic copy.
- pmontra 11y agoThat interview is about both Erlang and Smalltalk. Ralph Johnson, not one of Smalltalk's designers but close to what we'd call an evangelist nowadays, speaks about Smalltalk. Unfortunately I can't find one sentence that captures his view about Smalltalk's OO. I quote Johnson about Erlang, and in a way about Smalltalk itself: "The thing about Erlang is that it's in some sense 2 languages, at least you program it 2 levels because one is the functional language that you use to write a single process and then there is what you think about all these processes and how do they interact, one process is sending messages to the other. At a higher level, that Erlang is object oriented, at the lowest level it's a pure functional language and that's how it got advertised for a long time." [...] "The only way in Smalltalk to interact with an object is send it a message, but the issue is what message do you have. It's the same thing in Erlang" So it seems to me that he's saying that Erlang's processes are close to Smalltalk's objects. I recommend reading all the transcript (much quicker than watching the video).
- rasur 11y agoAh yes, thanks for clarifying.. I didn't quite get as far as watching or reading the article due to work distractions. :/
- ricksplat 11y agoI watched a talk recently with Bjarne Stroustroup where he claimed he never developed C++ as an "Object Oriented" language, just that it had some OO based abstractions. Apparently it got labelled as such at the time because OO was in vogue but it has many great features quite apart from that. His intention was that it just be a "better C" and be used as such.
- jernfrost 11y agoDepends on who gets to decide what object oriented means. Simula was out before Smalltalk. Most will call that the first object oriented programming language but it did not rely in message passing but rather worked similar to C++ and Java. Which isn't odd since Bjarne based C++ on his work with Simula.
- joshguthrie 11y agoWhat about ruby? Even classes are objects.
- SixSigma 11y ago“The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.” – Joe Armstrong See also Why OO Sucks - by Joe Armstrong http://harmful.cat-v.org/software/OO_programming/why_oo_sucks http://harmful.cat-v.org/software/OO_programming/why_oo_suck...