On Sat, Aug 22, 2009 at 5:11 PM, James Edward Gray II <james / graysoftinc.com
> wrote:

> On Aug 22, 2009, at 7:04 PM, Yehuda Katz wrote:
>
>   call_method({ proc_1 }, { proc_2 }, { proc_3 })
>>
>
>  Among other things, this syntax makes using multiple blocks in a method
>> call easier on the eyes.
>>
>
> In 1.9 that could be:
>
>  call_method ->() { proc_1 },
>              ->() { proc_2 },
>              ->() { proc_3 }
>
> Not quite what you asked for, I know.  But closish.
>
> The new syntax is growing on me.  I think it looks pretty good with the new
> Hash syntax, for example:
>
>  call_method load: ->() { proc_1 },
>              save: ->() { proc_2 },
>              quit: ->() { proc_3 }


I'm fine with the new syntax as well. The main difference is that while ->{
stuff } would create a lambda, { stuff } would create a proc. I think
there's a certain elegance to that.


>
>
> Just some thoughts.
>
> James Edward Gray II
>
>


-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325