4 ms·
> Erlang is Smalltalk done right I disagree ... In the Erlang model the messages are no longer just function calls with single dispatch. Imagine for example t
by bad_user 7y ago
> Erlang is Smalltalk done right
I disagree ...
In the Erlang model the messages are no longer just function calls with single dispatch. Imagine for example that method calls on String values would be asynchronous actor messages. That would be absolutely awful.
OOP isn't just about the actor model. OOP is also about encapsulation and polymorphism. In a static language, we're talking about row or subtyping polymorphism, i.e. methods of "ad hoc polymorphism".
And polymorphism and encapsulation transcend the actor model. I actually really hate the actor model, because asynchrony makes everything harder and actors are too low level, whereas OOP in general is passable as a paradigm in the right context.