[Python-ideas] [RFC] draft PEP: Dedicated infix operators for matrix multiplication and matrix power

Alexander Belopolsky alexander.belopolsky at gmail.com
Sat Mar 15 23:44:50 CET 2014


On Sat, Mar 15, 2014 at 6:31 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> In APL, *all* operators are right-associative. I'm not
> sure what the reason for that choice was, but it may
> result from a similar line of reasoning around how
> mathematicians think about things.
>

In APL, there is no operator precedence, so right associativity is the only
way to make expressions that mix unary and binary operation look natural.
 For example, a + -b.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140315/432d96d7/attachment.html>


More information about the Python-ideas mailing list