On Apr 30, 2008, at 9:26 PM, Dave Thomas wrote:
> This is one of those e-mails that I know from the start to be  
> futile, but...
>
> For a while now, the
>
>     -> (params) { block }
>
> syntax in Ruby 1.9 has bothered me, but I've never been sure why.  
> Today, while playing with pure, it struck me. The '->' sequence is  
> in an unexpected place. Having played with some functional  
> languages, I'm used to lambdas being written
>
>  \ params -> block

i like the '->' because it suggests very nice multi-block syntax

filter(

   :before -> { buf.upcase },

   :after -> { bug.downcase }

)

which doesn't work now, of course, but it can't be that far off.


a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama