From: Mark Thomas Date: 2009-05-15T09:45:02+09:00 Subject: Re: Syntactic sugar idea On May 14, 6:31 pm, Daniel Berger wrote: > On May 13, 8:42 pm, Daniel DeLorme wrote: > > > It seems that often an object will be passed into a block only to invoke > > a method of that object: > >    arr.map{ |obj| obj.some_method } > > > So I had the (weird? stupid?) thought that it would be nice to have some > > syntactic sugar like this: > >    arr.map{ .some_method } > > require 'enumerable/extra' > > arr.map(:some_method) > > Regards, > > Dan Cool! What would it take to make this 1.9 compatible?