From: Christian Neukirchen Date: 2005-07-30T23:12:33+09:00 Subject: Re: Idea for Ruby 2.0 David Vallner writes: > Nikolai Weibull wrote: > >>Well, it depends on how you would want it. In Prolog (don't remember >>how Haskell does it), all variable beginning with a lowline are ignored >>- it adds some documentational value. Perhaps only _ is enough, >> nikolai >> >> >> > Offtopic: I thought those are just any old variables in Prolog. I know > for 25% certain SWI-Prolog uses variables starting as underscores as > anonymous variables it creates when getting itself into an infinite > loop fit ;P I'm not sure they are "old variables"... compare foo(A, A, B) and foo(_, _, B). I don't think they share the same semantics. > David -- Christian Neukirchen http://chneukirchen.org