[erlang-questions] Process scope variable

Richard A. O'Keefe ok@REDACTED
Wed Feb 18 01:32:32 CET 2015

On 18/02/2015, at 6:37 am, zxq9 <zxq9@REDACTED> wrote:
> If you find yourself writing an excessive number of functions that simply 
> receive arguments to pass them through it may be a good idea to ask yourself 
> why your programs are winding up this way before you start hunting for ways to 
> dance around the design decisions that underly the system. Sometimes it isn't 
> easy to avoid passing, say, a gen_server's #state (or something similar) along 
> here and there, but usually refactoring for functional generalization also 
> winds up yielding code that does a lot less argument passthrough.


Well put.

More information about the erlang-questions mailing list