From: Hongli Lai Date: 2009-08-30T04:10:55+09:00 Subject: [ruby-core:25184] Re: [Feature #1961] Kernel#__dir__ Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [ruby-core:25182] Re: [Feature #1961] Kernel#__dir__" > on Sun, 30 Aug 2009 02:57:44 +0900, Magnus Holm writes: > > |Wouldn't it be a little confusing to remember that __FILE__ is uppercase and > |__dir__ is downcase? Doesn't sound very POLS to me... > > __FILE__ is a keyword and __dir__ is a method. I'd like to emphasize > this difference but I'm open to hear opinion from others. > > matz. > > I think it should be __DIR__ for consistency. There are no other __ things in Ruby that are lowercase. I think whether __dir__ is a keyword or a function should be an implementation detail.