From: Gregory Brown Date: 2009-05-14T14:14:07+09:00 Subject: Re: [bikeshed] Syntactic sugar idea On Thu, May 14, 2009 at 12:16 AM, Daniel DeLorme wrote: > Rob Biedenharn wrote: >> >> The parser already refused to treat .5 as a Float literal insisting that >> it be 0.5 so I doubt that .foo would get any more favorable treatment as a >> special case (since .5 isn't really all that special). > > Well, you never know... Matz *did* add the Symbol#to_proc conversion in > 1.9 and also the foo\n.bar "fluent interface" syntax. So apparently > trivial changes *do* make their way into core... sometimes. But Symbol#to_proc is not a parser change. It's just using an existing hook that has been around in Ruby 1.8 -greg