From: "David A. Black" Date: 2008-04-23T23:45:50+09:00 Subject: Re: [RCR] Drop :: as a . synonym Hi -- On Wed, 23 Apr 2008, Luis Lavena wrote: > On Wed, Apr 23, 2008 at 11:21 AM, David A. Black wrote: >> Hi -- >> >> I'd like to request the deprecation/removal of :: as a synonym for the >> method-calling dot. I think it's a good opportunity to take out >> something that Ruby doesn't need. We've already got the dot, which >> always means "send a message", and :: already means something else >> (constant resolution). >> >> My view is that if it weren't already there, it would never occur to >> anyone to put it in at this point. Of course, it *is* already there, >> but I think it would be well worth taking it out. In my 7.5 years of >> Ruby programming I've never seen it demonstrate any usefulness at all. >> > > Even that I agree with you, I found several examples around the web > and usage of :: over . for things like Dir::tmpdir, File::open and > others. > > What about a deprecation warning in 1.9 and get rid of those in 2.0? That would be fine. There's definitely a lot of usage of it, so it wouldn't really do just to drop it suddenly. David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates!