threads - use them as much as you can

Samuel Tardieu sam@REDACTED
Tue Nov 28 11:01:11 CET 2000


Another nice thing about processes in Erlang is how they map onto objects.

At the beginning of OO programming, programmers were told "Look, it is
so nice, you do not call subprograms, you send messages to objects which
will then react to those messages". This view was flawed, as the object
was not reacting at all (it had no thread of control on its own), it just
provided the caller with what to do (the method's code).

In Erlang, you really send messages to objects, you do not execute yourself
the code that they supply. Erlang processes are real objects.





More information about the erlang-questions mailing list