4 ms·
When you show someone a mathematical formula using standard infix notation, and then want them to write a program to implement it, it's immensely helpful if the
by bjt 12y ago
When you show someone a mathematical formula using standard infix notation, and then want them to write a program to implement it, it's immensely helpful if the syntax of the language is close to the mathematical notation. Infix operators are a huge boon to readability for beginning programmers, especially those with some science/math background.
This is the subject of some extended discussion in the new PEP proposing a Python infix operator for matrix multiplication. http://legacy.python.org/dev/peps/pep-0465/ http://legacy.python.org/dev/peps/pep-0465/