From: Rich Kilmer Date: 2002-09-17T00:12:43+09:00 Subject: RE: private variables > -----Original Message----- > From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] > Sent: Monday, September 16, 2002 10:46 AM > To: ruby-talk ML > Subject: Re: private variables > > > Hi, > > In message "Re: private variables" > on 02/09/16, William Djaja Tjokroaminata > writes: > > |Well, will these localized/private variables make it into > the next Ruby > |release? Because there were some previous objections regarding the > |single leading underscore ("I have used leading underscore in my > |current instance variables"), or regarding the symmetry ("It > will not > |look balanced"), will there be any vote on the format of the > localized > |variables: > | > | @_x > | @__x > | @_x_ > | @__x__ (ala Python ?) > | (or some other second character indicator, such as @#x and @%x ?) > | > |Or will Matz decide on this? > > I will. Somewhere around "@_x" and "@__x". I don't care > about the balancing. Those who care may put extra "__" after > varriable names. > > matz. Well, the double-underscore (@__x) variables would be less likely in Ruby code right now than single (@_x) since Ruby uses doubles for special constants like __FILE__, etc so it may yield less conflicts with existing code bases. -rich