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?
- [julia-users] Why X.>0 & X.<1 equal to X .> ... Jerry Xiong
- [julia-users] Re: Why X.>0 & X.<1 equal to... Matt Bauman
- Re: [julia-users] Re: Why X.>0 & X.<1 ... Stefan Karpinski