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

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 15 23:56:55 CET 2014


Robert Kern wrote:

> For me, left-associative causes an additional cognitive burden, but it's 
> a minor one, either way.

Wild idea -- provide a way to spell both left and
right associative versions.

It's disappointing that there isn't a character that's
the mirror image of an @. Failing that:

    A @ B     left associative
    A @: B    right associative

(Ducks hail of tomatoes from the no-colons-in-expressions
crowd...)

-- 
Greg



More information about the Python-ideas mailing list