On 9/9/07, dblack / wobblini.net <dblack / wobblini.net> wrote:
> Hi --
>
> On Mon, 10 Sep 2007, Wilson Bilkovich wrote:
>
> > On 9/9/07, Logan Capaldo <logancapaldo / gmail.com> wrote:
> >> On 9/9/07, Bernardo Monteiro Rufino <bermonruf / gmail.com> wrote:
> >>> On 9/9/07, dblack / wobblini.net <dblack / wobblini.net> wrote:
> >>>
> >>>> As far as remember, Guy Decoux and I are the only two people who think
> >>>> that this makes perfect sense, once you learn it, and should not be
> >>>> changed :-)
> >>>>
> >
> > This one is my favorite.
> > P.S. Don't use this in 'real' code or I will be forced to hunt you
> > like a wild animal through the streets of your city. =(
> >
> > hydra>cat eye_of_terror.rb
> > h = {}
> > f = lambda {|h[:x]| }
> > f[7]
> > p h
> >
> > hydra>ruby eye_of_terror.rb
> > {:x=>7}
>
> Hey, nothing wrong with that -- it's just like
>
>    h[:x] = 7
>
> but in slightly different form. But like I said, I'm one of the few
> who think that there's nothing wrong with assignment semantics for
> block parameters :-)
>
>

I agree, except for the fact that assignments are relatively static,
while 'yield' calls are variadic. Please tell me you don't use this
feature, David. :)

Hash#each do {|h[:x]| ... } is.. pretty strange.