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 :-)


David

-- 
* Books:
   RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
   RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
     & consulting:  Ruby Power and Light, LLC (http://www.rubypal.com)