On 7/11/07, dblack / wobblini.net <dblack / wobblini.net> wrote:
> Hi --
>
> On Wed, 11 Jul 2007, Pit Capitain wrote:
>
> > 2007/7/10, James Edward Gray II <james / grayproductions.net>:
> >> I've also recently adopted the trick of using _ as an unused
> >> parameter name.  I believe it was Ara that first suggested this and I
> >> think it's a great idea:
> >>
> >>    hash.sort_by { |key, _| }> >
> > Maybe it was Ara indeed, but the first reference I found on ruby-talk
> > was a post from Nikolai Weibull almost two years ago. See
> > ruby-talk:149793.
>
> Isn't that the same as:
>
>    hash.sort_by {|key,| ... }
>
> (assuming one isn't going to make use of the value in _)?

yup was brought up by Robert (Klemme) recently, and if memory serves
   { | , key | ... }
does not work :(.
>
Robert
-- 
I always knew that one day Smalltalk would replace Java.
I just didn't know it would be called Ruby
-- Kent Beck