[erlang-questions] is there "return" in Erlang.

Masklinn masklinn@REDACTED
Mon Feb 28 15:07:27 CET 2011


On 2011-02-28, at 14:15 , Jesper Louis Andersen wrote:
> 2011/2/28 Wang Wei <wgwi@REDACTED>:
> The problem here is that doSomeThing(a); is done for its side-effect
> only. The only possible side-effect in Erlang is that it communicates
> with other processes.

Well yeah but via this it can communicate with databases, other processes on the same machine, web services, etc…

It's not like Erlang puts *any* restriction on side-effects within a function (as opposed to, say, Haskell)



More information about the erlang-questions mailing list