<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 15, 2014 at 9:58 AM, Robert Kern <span dir="ltr"><<a href="mailto:robert.kern@gmail.com" target="_blank">robert.kern@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, Mar 15, 2014 at 2:49 PM, Charles R Harris<br>
<<a href="mailto:charlesr.harris@gmail.com">charlesr.harris@gmail.com</a>> wrote:<br>
><br>
> I favor the weak right option.<br>
><br>
> 1) Giving '*' higher precedence than `@` makes it easier, to my mind, to<br>
> parse out what is going to happen: all the element-wise multiplications,<br>
> followed by the matrix operations. I'd probably still use parenthesis for<br>
> clarity.<br>
<br>
</div>It seems to me that 'tight' gives the same benefit. Any reasoning for<br>
the preference of 'weak' over 'tight'?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Two other reasons come to mind. First, '*' is right associative, so I think it is nicer to first view the expression as parsed into blocks separated by '@', which act somewhat like parenthesis at that point, and then evaluate the blocks. Second, and somewhat weaker, it might make it easier to track how arrays are broadcast.<br>
<br></div><div>Chuck<br></div><br></div></div></div>