From: Christian Neukirchen Date: 2005-07-30T19:06:23+09:00 Subject: Re: Idea for Ruby 2.0 Nikolai Weibull writes: > Christian Neukirchen wrote: > >> Nikolai Weibull writes: > >> > Eric Mahurin wrote: > >> > > There is no reason Ruby couldn't optimize for the case where a >> > > variable is declared in the argument list and never used. > >> > Nor for it to not issue a warning if the variable is declared in the >> > parameter list but never used, > >> This should not happen anyway. There are enough good reasons to >> ignore some parameters (cf. Integer#times). > > That's precisely why you would want to have unnamed variables, > nikolai Don't make me write 5.times { |_| foo }, *please*. > Nikolai Weibull -- Christian Neukirchen http://chneukirchen.org