See

http://docs.julialang.org/en/release-0.4/manual/control-flow/#man-short-circuit-evaluation

A lot of effort went into writing and improving the language manual, so
that you can find very detailed answers to questions like this one. It
is fine to ask on the list if you can't find it, but giving the whole
manual a read is very useful for new users of Julia.

On Mon, May 30 2016, Ford Ox wrote:

> Ye I know what bitwise operator does.
> I will ask in different way, maybe it will be clearer to you.
>
> Why people use logical operators ( f.e. in conditions ) instead of bitwise
> operators? Is && <: & ?
>
>
> On Monday, May 30, 2016 at 9:58:02 AM UTC+2, Kaj Wiik wrote:
>>
>>
>> Here's a clue:
>>
>>
>> julia> 0b10010011 & 0b10010011
>> 0x93
>>
>> julia> 0b10010011 && 0b10010011
>> ERROR: TypeError: non-boolean (UInt8) used in boolean context
>>
>>
>> Kaj
>>
>>
>> On Monday, May 30, 2016 at 9:30:22 AM UTC+3, Ford Ox wrote:
>>>
>>> For example
>>> true & false == true && false
>>>
>>> Is it just artifact from c where bool types don't exist?
>>>
>>

Reply via email to