[erlang-questions] Process scope variable

Imants Cekusins imantc@REDACTED
Tue Feb 17 14:55:31 CET 2015


Does anyone see any benefit from process scope variables?

E.g.
a()->
 A = 10,
b().

b()->
B = A + 1.

If unset variable is referenced, an error is raised.

If set process variable is assigned to (and does not pattern match),
an error is raised.


This way, there is no need to pass a bunch of static variables around.

?



More information about the erlang-questions mailing list