Oh look, another language (ceylon)

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Nov 18 01:45:42 EST 2013


Rick Johnson wrote:
>     The multiplication operator can ONLY be used on
>     numerics.

I'm not convinced about that part. I notice that
subtraction, multiplication and division are bundled
into a single interface Numeric, but there is a
separate one called Summable for addition --
apparently so that they could use + for string
concatenation.

This seems to be a case of one rule for the language
designers and a different one for everyone else.
If it's okay for '+' to be used on something that's
not a number, why not '*'?

-- 
Greg



More information about the Python-list mailing list