[erlang-questions] Reassigning variables

Richard O'Keefe ok@REDACTED
Thu Mar 19 05:38:45 CET 2009


There is one thing that is better than reassigning a variable,
and that is hiding the variable *completely* from sight.  This
is what DCGs do for Prolog and Mercury and what State monads
do for Haskell.

As Dempsky points out, the compiler uses "St" a *lot*.
The best thing to do would be to hide *all* of those variables
so that you wouldn't even have to name "it" let alone "them".





More information about the erlang-questions mailing list