[erlang-questions] Process scope variable

Imants Cekusins imantc@REDACTED
Thu Feb 19 15:44:29 CET 2015


> Why even pass the pid!
> -module(terrible).

instead of the gs?

well gs is more solid, with terminate/2 and timeout where we could catch errors.

btw here:

b() ->
    {ok, Value} = proc_get(a),
    Value + 1.

- the "state" gs would not act on state - only get & set



More information about the erlang-questions mailing list