[Python-ideas] Infix functions
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Feb 22 02:16:43 CET 2014
Andrew Barnert wrote:
> The Numeric community wanted this as a way of defining new mathematical
>operators. ... you could solve the problem easily with infix functions:
>
> m `cross` n
> m `dot` n
For me that totally misses one of the main points of
infix operators, which is that they're *concise*. There's
little advantage in writing the above rather than
cross(m, n)
dot(m, n)
--
Greg
More information about the Python-ideas
mailing list