[erlang-questions] Process scope variable

Loïc Hoguin essen@REDACTED
Thu Feb 19 14:16:26 CET 2015

On 02/19/2015 02:12 PM, Imants Cekusins wrote:
>>   instead of State you have Pid
> a fun can return just what it did, without
> {Return, State}
> so no more
> S1 = a(State),
> S2 = b(S1)
> simply
> a(Pid)
> b(Pid)

You say "simply" but it is anything but simple. People reading your code 
will just end up scratching their heads. You will also spend more time 
writing tests and debugging. Are you sure this is what you want?

Loïc Hoguin

More information about the erlang-questions mailing list