Re: Syntax for OR

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...

I'm sorry Lonny, but what isn't correct?

Erm, you state it below:

DerekParnell said...

It is incorrect that if A = (B or C) ... is equivalent to if (A = B) or (A = C) then ...

From the context of the original post, I interpreted katsmeow's post to mean:

alternative said...
    1. if A = (B or C) ... is equivalent to if (A = B) or (A = C) then ...##

And I think that's a reasonable interpretation of katsmeow's words.

DerekParnell said...

So without that sort of context, it would be presumptuous to assume that Kat's code is "incorrect".

I would think OP's post provides enough context... if katsmeow intended to speak about something different, then I think that katsmeow should have provided additional context herself to make this clear. (OTOH, when posting in a hurry or on the run, it's possible to make minor mistakes and forget to include things. It happens, it's no big deal, the important bit is to obtain clarification after the fact. It's also possible that this is a "joke" post, where katsmeow is trying to alert the OP about the possible traps due to the lack of an explicit boolean type in Euphoria - but in that case, some initial confusion is to be expected.)

DerekParnell said...

if we knew what the code intended by the code.

After spending several minutes rereading this line, I still do not understand what it means.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu