hal9000 / hypermetrics.com writes:

> The poster mentioned that quite apart from their
> traditional use, Ruby modules might be used as a way
> of de-cluttering the toplevel, i.e., namespace management.

'twas I.

They already are used for this purpose in the build-in library. Take
Math, for example. All the various transcendental functions, and the
constants, are packed into one bundle, so you use Math::PI.

If you're writing a CGI script for a porn site, and define method
'sin', it won't get clobbered by Math::sin ;-)

Eventually we may even see all the punctuation globals ($/ and
friends) relegated to module Perlisms or somesuch. No there'd be a
namespace tidyup ;-)


Dave