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

Antoine Pitrou solipsis at pitrou.net
Sat Mar 15 18:15:21 CET 2014


On Sun, 16 Mar 2014 03:26:49 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> Exactly the same argument applies to left-associativity. Why should the 
> language enforce optimizing the first case over the second?

It has nothing to do with optimizing, it's just that left-associativity
is the common expectation wrt. operators. Left-associativity doesn't
need any particular justification.

Regards

Antoine.




More information about the Python-ideas mailing list