"Carl Banks" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| | Is it worth it to make such a change?  It would remove a lot of 
operators
| (11 by my count), vastly simplifying syntax,  Which, IMHO, is no small
| thing.  New numerical types would have fewer operations to support.

Py3 adds an abstract base class module.  Bit-integers (with the above 
operations) are a separate subclass of abstract int/rats (forget the 
detail), so new numerical types do not have to support those ops unless 
declared as deriving from the bit-int class.

Some people consider having lots of operators available to overload in 
their classes to be a good thing.  Operator notation is much nicer that 
function notation for binary functions.mapping pairs of objects of a class 
to an object of the class.

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to