On Wed, Dec 11, 2002 at 04:56:03PM -0800, Michael Lazzaro wrote:
> First, universal operators and universal methods both pollute the 
> useful (programmer) namespace to nearly the same extent.

Most of the methods are not universal.  For example:

     $foo.compress

would be in the String class, not Object (or whatever we're calling the
equivalent of UNIVERSAL today), and only inherited by those objects which
wish to masquerade as strings.

     %hash.default

is in the Hash class.

The sameas example:

     $obj.sameas $obj2

would be in the Object class and would pollute.  Using Ruby as a rough
guide, there aren't many of those.
http://www.rubycentral.com/book/ref_c_object.html


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
One disease, long life.  No disease, short life.

Reply via email to