the problem of using _Var instead of _

Mats Cronqvist mats.cronqvist@REDACTED
Fri Mar 4 13:24:38 CET 2005


   ifaik, the only difference between _X and X is that the "unused variable" 
warning is not issued for _X.
   imho, the whole _Var thing is a kludge that should be avoided.

   mats

Bengt Kleberg (AL/EAB) wrote:
> Vlad Dumitrescu wrote:
> ...deleted
> 
>>Using _ matches different tails, but using _T only matches if the tails are
>>identical.
> 
> 
> yes, there is a difference between _ and _<Var>. that was the 
> observation i tried to convey.
> 
> the design guidelines that mandate _Var instead of _ failed to mention 
> this. so i have operated under the assumption that _ and _<Var> are the 
> same for over four years now.
> 
> 
> bengt



More information about the erlang-questions mailing list