the problem of using _Var instead of _

Bengt Kleberg bengt.kleberg@REDACTED
Mon Mar 7 09:18:23 CET 2005

Richard A. O'Keefe wrote:
> in _all_ the programming languages I've used which have pattern
> matching standardly built into their procedure-calling machinery,
> "anonymous variable" syntax gives you a new distinct variable
> each time you use it, while this is not true for any other kind of
> variable, no matter how spelled.

my mistake was to think that all variables that start with '_' are 
anonymous variables. since i managed to write code for four years 
without realising my mistake, i thought it might be possible that others 
are also making this mistake. if so, it seemed to me to be for the best 
to explain the difference between variables starting with '_' that are 
one character long, and those that are longer.

to avoid sending this (superflous) explanation to the mail list i wanted 
to know if this could not become part of a ''stupid mistakes to avoid'' 
page on . however, emails to adm@REDACTED bounce. the 
address is erronously expanded to jocke@REDACTED

sorry for the confusion.


More information about the erlang-questions mailing list