An over enthusiastic warning ?

Matthias Lang matthias@REDACTED
Tue May 23 23:45:34 CEST 2006

Roger Price writes:
 > The following code was produced by a compiler [1] which replaced unused 
 > variables U4 and U5 by wildcards,

Calling _U4 a 'wildcard' seems a bit misleading, because it leads to
the thought that _U4 is a wildcard in the same way as _ is a wildcard,
which is not the case. For example:

  f(_U, _U) -> same;
  f(_U, _V) -> different.

  5> roger:f(a,b).
  6> roger:f(a,a).

Matthias (aware that I've avoided most of your implied question and
quite probably told you something you already know)

More information about the erlang-questions mailing list