[Numpy-discussion] [help needed] associativity and precedence of '@'

Robert Kern robert.kern at gmail.com
Sat Mar 15 11:58:32 EDT 2014


On Sat, Mar 15, 2014 at 2:49 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
>
> I favor the weak right option.
>
> 1) Giving '*' higher precedence than `@` makes it easier, to my mind, to
> parse out what is going to happen: all the element-wise multiplications,
> followed by the matrix operations. I'd probably still use parenthesis for
> clarity.

It seems to me that 'tight' gives the same benefit. Any reasoning for
the preference of 'weak' over 'tight'?

-- 
Robert Kern



More information about the NumPy-Discussion mailing list