[erlang-questions] Process scope variable

Imants Cekusins <>
Thu Feb 19 14:12:29 CET 2015


>  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)


also, given simplified standard signatures, I do not need to navigate
the full spagetti path to check & recheck if I call a fun correctly.

refactoring will take me at least 50% less time.


More information about the erlang-questions mailing list