Abe Dillon wrote:
Why not use a more consistent notation like add(x, y) instead of x +
y when we know addition is a function and all other functions (usually)
follow the f(x, y) notation?
Because math is old.
No, it's because infix notation is *more readable* than function
notation when formulas become complex. It has persisted because
it works, not because mathematicians are stuck in their ways.
Having said that, it's relatively rare that mathematicians make
up entirely new symbols -- they're more likely to repurpose
existing ones. E.g. "+" is used for addition-like operations on
a very wide variety of things -- numbers, vectors, matrices,
tensors, quantum states, etc. etc. Mathematics is quite
Python-like in that way.
--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/FUHAOCNKANGDQEZBPRRKC7NTHV4JIVNU/
Code of Conduct: http://python.org/psf/codeofconduct/