> 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