News for hackers. Stuff that matters.
Re:Erlang for Skeptics by rvirding on Sunday November 29, 2009 @04:40PM (#966849)
The only time it is sensible to do this with variable names is when they are some form of logical progression, for example when threading a state variable through the code which may be modified.

  f(..., State0) ->
    {A,State1} = foo(..., State0),
    {B,State2} = bar(..., State1),
    {C,State3} = baz(..., State2),
    Res = fubar(A, B, C, ...),
    {Res,State3}.
Otherwise you just create confusion.

There are no comments on this comment yet.