[erlang-questions] Reassigning variables

bill robertson billrobertson42+erlang@REDACTED
Wed Mar 18 04:20:59 CET 2009


>  So I think the X1 = f(X), X2 = f(X1) anti-pattern is not a weakness
>  of the language; it's Erlang's way of telling you that you should
>  use more functions.
>
>  mats

This is an honest question.  How is re-assignment of local variables
bad?  They have no life outside their stack frame.  So there is no
risk of side-effects.

Is it a style issue or is there something else?



More information about the erlang-questions mailing list