News for hackers. Stuff that matters.
Re:Why functional programming matters by hota_mazi on Tuesday April 18, 2017 @10:12AM (#14138940)
Erlang has pretty much zero features usually associated with OO, which is not surprising since Erlang's creator once wrote "Why OO sucks"[1].

[1] http://harmful.cat-v.org/software/OO_programming/why_oo_suck...

Re:Why functional programming matters by mpweiher on Tuesday April 18, 2017 @10:26AM (#14139048)
"Joe Armstrong: Smalltalk got a lot of the things right. So if your question is about what I think about object oriented programming, I sort of changed my mind over that. I wrote a an article, a blog thing, years ago - Why object oriented programming is silly. I mainly wanted to provoke people with it. They had a quite interesting response to that and I managed to annoy a lot of people, which was part of the intention actually. I started wondering about what object oriented programming was and I thought Erlang wasn't object oriented, it was a functional programming language.

Then, my thesis supervisor said "But you're wrong, Erlang is extremely object oriented". He said object oriented languages aren't object oriented. I might think, though I'm not quite sure if I believe this or not, but 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.

..."

Read the rest. It's good.

https://www.infoq.com/interviews/johnson-armstrong-oop/

Re:Why functional programming matters by Jtsummers on Tuesday April 18, 2017 @10:25AM (#14139038)
If you look at early concepts for OO where objects were simulations of things (Smalltalk, Simula) and communicated via message passing, erlang's process and message passing model actually fits well within the OO-framework of thought at least with regards to application design. What it's missing are syntax/semantics based on class hierarchies and such from OO languages like Java and C++, which isn't a bad thing.
Re:Why functional programming matters by maze-le on Tuesday April 18, 2017 @10:19AM (#14138989)
I once heared a speech from Joe Armstrong, where he considered erlang the only true object oriented language... This was of course a little quip to the OOP community, but it has a certain truth in it. He argued, that the actor model is basically object orientation like it should have been done.