guidance

Matthias Lang matthias@REDACTED
Thu Apr 29 10:09:35 CEST 2004


Thomas Lindgren writes:

 > Note furthermore that erlang processes are more
 > general than ordinary objects: the response to a
 > message can change by using gen_fsm or multiple
 > receives inside a single process. In a class, you have
 > one set of method implementations per method name. In
 > a process, the response depends on which receive you
 > (or which state) you are in.

Am I completely misunderstanding something? Surely you're
not arguing that OO doesn't allow side effects?! 

If I rewrite your last sentence. "In a class, the response [can]
depend[s] on which state you are in", that doesn't seem unnatural
in many popular OO languages. 

Matthias



More information about the erlang-questions mailing list