On 31 December 2013 14:07, John Myles White <[email protected]> wrote:
> Coming from R, I’m pretty strongly opposed to Matlab's precedence rule for 
> “:”. I find it hard to read and really wish that it hadn't made it impossible 
> for us to match R’s formula syntax. The “:” operator’s precedence is by far 
> the part of Julia that I most dislike (which, of course, is why I’m such a 
> big fan of Julia, since that’s a minor problem to have as your worst quality.)

This is the main place where I agree with your style guide. It's not
that I prefer one set of precedence rules or another, but I generally
don't like relying on precedence rules. I tend to use parenthesis and
write things like 1:(2n-1) because that way no one could possibly be
confused about what this does.

-- 
When an engineer says that something can't be done, it's a code phrase
that means it's not fun to do.

Reply via email to