[Python-Dev] Infix operators

Nick Coghlan ncoghlan at gmail.com
Sat Jul 26 10:23:17 CEST 2008


Sebastien Loisel wrote:
> However, just for posterity (and I'm not going to pursue the argument 
> further than this), I'll say this. The problem of determining the 
> meaning (or overridability or whatever) of x=4$6 is the same as the 
> problem of determining the meaning of x=fooz(4,6). Since it's not a good 
> argument against user-defined functions, I don't see it as a good 
> argument against user-defined operators.

The namespace of usefully mnemonic function names is infinitely larger 
than that of usefully mnemonic punctuation marks. User-defined functions 
are good, but once you have those there is no reason to have 
user-defined operators *as well*.

Cheers,
Nick.



More information about the Python-Dev mailing list