From: Jason Creighton Date: 2003-09-12T19:29:46+09:00 Subject: Re: How are global methods defined? On Fri, 12 Sep 2003 10:54:52 +0900 "Gavin Sinclair" wrote: > > [Jason Creighton]: > > But why not add just add private methods to Object if it has the same > > effect? What's the point of having Kernel? It seems like going the long > > way around. > > Well, it doesn't cost anything, and it's a good separation of concerns. > The stuff in Kernel doesn't conceptually belong in Object. Yes, it causes > some pain and suffering when you can't find the documentation :) But > every Rubyist learns about Kernel pretty soon. And it's worth it in the > long run to avoid bloat and cognitive dissonance. Ah, okay. > If I could hand down only one piece of advice to a new Rubyist, it's this: > get 'ri' (why oh why is this not in the distribution?) Already have it. Allow me to inject a "me too!". 'ri' is so useful it really should be in the distribution. Jason Creighton