[erlang-questions] Process scope variable

Loïc Hoguin <>
Thu Feb 19 14:07:07 CET 2015


On 02/19/2015 02:04 PM, Imants Cekusins wrote:
>> So much time spent for removing one State variable from a few function calls.
>
> much more time will be saved when refactoring from now on.
>
> imagine:
> most funs will now have signature:
>
> -spec a(pid()) -> ok.
>
> and most function bodies will look like:
> check(Pid),
> update(Pid),
> return(Pid).
>
> it will be a breeze now.

So basically instead of State you have Pid? I'm not sure I understand 
the improvement.

-- 
Loïc Hoguin
http://ninenines.eu


More information about the erlang-questions mailing list