[erlang-questions] Process scope variable
Thu Feb 19 14:07:54 CET 2015
Rather you than me :) Personally, when in a functional language, I quite like reading a function and thinking “cool, a function called ‘fred’ that operates on data A, B, and C”. I shudder when I recall my 20+ years of OO and thinking “ok, a method called ‘fred’. Wonder what it does?"
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Thursday, 19 February 2015 at 14:04, 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.
> most funs will now have signature:
> -spec a(pid()) -> ok.
> and most function bodies will look like:
> it will be a breeze now.
> erlang-questions mailing list
> erlang-questions@REDACTED (mailto:erlang-questions@REDACTED)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions