On 12-Sep-08 16:33, Invisible wrote:
> andrel wrote:
>
>> Aside, the Haskell evaluation needs much more to explain than the C
>> code execution.
>
> You're probably right about that.
that is rather sparse quoting. The context was meant to imply that it
shouldn't (in an ideal world with no memory and fresh teachers very year).
> (OTOH,
?
> doesn't C have short-circuit Boolean operators?)
Not sure if the answer for an negated question should be yes or no.
Anyway C logical operators don't evaluate terms on the right if the
answer is already known. Perfectly sensible in a world without side effects.
At times like this I wish for a time machine and go back and shoot the
moron that first used the 'short-circuit Boolean operators' expression.
Mind you I am normally not an aggressive person.
Post a reply to this message
|