From: Sean O'Halpin Date: 2009-04-28T09:10:05+09:00 Subject: Re: Block Style On Tue, Apr 28, 2009 at 12:47 AM, Joel VanderWerf wrote: > Does it make a difference, in choosing between > >  foo {..}.bar > > and > >  foo do..end.bar > > whether the value is the block value or the #foo return value (in those > cases where they differ)? Probably not, just a thought... > I guess it's in the eye of the beholder but end.bar just looks odd to me. And now I think about it, when we do arr.map {|x| x * x }.sort we're not operating on the return value of the block either but arr.map do |x| x * x end.sort just looks wrong to me. Regards, Sean