[erlang-questions] Process scope variable
Tue Feb 17 15:33:19 CET 2015
> With funs you can do:
> a() ->
> A = 10,
> B = fun() -> A + 1 end,
closure, isn't it? yes it is helpful.
well the idea is not to eliminate function arguments but pass only
args specific to the fun.
also, please note that process dict allows overriding. I was thinking
more in terms of static var - same as in function scope.
Well it only takes a util fun to explicitly allow or disallow
override. Can even raise a stacktrace to show where in the code the
var was set.
why didn't I ask a while ago..
More information about the erlang-questions