[erlang-questions] Reassigning variables

mats cronqvist masse@REDACTED
Wed Mar 18 11:32:31 CET 2009


bill robertson <billrobertson42+erlang@REDACTED> writes:

>>  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?

  Because it's difficult to read, and therefore to maintain.



More information about the erlang-questions mailing list