That conversation got pretty heavily derailed. I think the main takeaway is
that dotted comparison operators should not be at the same precedence level
as undotted comparison operators and the dotted ones should maybe have
higher precedence than bitwise operators.

On Thu, Apr 2, 2015 at 10:16 AM, Matt Bauman <[email protected]> wrote:

> I agree! That was one of the first issues I filed.
> https://github.com/JuliaLang/julia/issues/5187
>
> It's still on the slate to be addressed in 0.4.
>
> On Thursday, April 2, 2015 at 8:58:15 AM UTC-4, Jerry Xiong wrote:
>>
>> I notice that the logical operations in Julia have a different precedence
>> order from R and Matlab. & and | have higher precedence than .<, .>, etc.
>> For example, X.>0 & X.<1 will be parse as X .> (0 & X) .< 1 rather than
>> (X.>0) & (X.<1). I think there must be a reason for this anti-intuition
>> design. I just curious what it is?
>>
>

Reply via email to