From: Trans Date: 2005-07-29T04:01:03+09:00 Subject: Re: Method Scopes Austin Ziegler wrote: > On 7/28/05, Trans wrote: > > I would like to see Ruby gain a "scoping feature" (I usually refer to > > this as a "namespace", but looking at Matz' discussion of Rite he's > > using that to mean something else). This idea is this: > > Um. Ew? > > Sorry, but I find that whole concept ("selector namespaces", I think, > is the common name for it) code-ugly. Ah, "selector namespace", thanks. > To me, "Wizard".format.jumble means that I'm calling the method > #format on "Wizard" and then the method #jumble on the result of > #format. To have it mean something else randomly is, to say the least, > confusing. That's exaclty it though. Its very much like method chaining --i.e. when a method returns self. I suspect you don't consider method chaining ugly and confusing. So it makes sense if you think of it like that. The only difference in this case is that the subsequent callable methods are a select set. T.