From: Michael Neumann Date: 2008-05-08T23:48:52+09:00 Subject: Re: lambda, ->, haskell, and so on ara howard wrote: > > 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 } > > ) Note that this already works in ruby19: filter before: -> { buf.upcase }, after: -> { buf.downcase} Regards, Michael