Julia is space sensitive, and errors like this can crop up.  I don't see 
how this is behavior is inconsistent.  Use whitespace! :-)

On Thursday, January 8, 2015 at 5:17:32 PM UTC-5, [email protected] wrote:
>
> OK, so it seems the operators work (both .≥ and .≤), but the parse tree is 
> wrong if there's no whitespace between the digit and the dot:
> `julia> a=[ 1 2 3 4 5 6 7]; 
> julia> a[5.≥ a] # fails
> julia> a[5.≤ a] # fails
> julia> a[5 .≥ a] # works
> julia> a[5 .≤ a] # works
> julia> parse("5 .≤ a")
> :(5 .≤ a) `
>
> Inconsistent - yes, but at least no wrong result is produced.
>

Reply via email to