Toplevel namespace justification

Whenever you're not redefining methods for one of the core classes.

Otherwise, always use a namespace for your classes.

Regards,

Dan

···

-----Original Message-----
From: Trans [mailto:transfire@gmail.com]
Sent: Tuesday, November 15, 2005 1:07 PM
To: ruby-talk ML
Subject: toplevel namespace justification

When is using the toplevel constant namespace justified?

indeed.

i also do

   module M
     class C
     end
   end

   module N
     C = M::C
   end

when required.

-a

···

On Wed, 16 Nov 2005, Berger, Daniel wrote:

-----Original Message-----
From: Trans [mailto:transfire@gmail.com]
Sent: Tuesday, November 15, 2005 1:07 PM
To: ruby-talk ML
Subject: toplevel namespace justification

When is using the toplevel constant namespace justified?

Whenever you're not redefining methods for one of the core classes.

Otherwise, always use a namespace for your classes.

--

ara [dot] t [dot] howard [at] gmail [dot] com
all happiness comes from the desire for others to be happy. all misery
comes from the desire for oneself to be happy.
-- bodhicaryavatara

===============================================================================