Transcript handling of OR and AND expressions

Ray G. Miller rgmiller at pacbell.net
Thu Feb 19 13:35:28 EST 2004


>
>
>From: Dan Shafer <revdan at danshafer.com>
>
>This is, relatively speaking at least, how all of the major programming 
>languages work. There's even a name for it. I think it might be called 
>something like "lazy" Boolean evaluation.
>
>In any case, while Jim is right that this can be an issue if you use 
>expressions with side effects, the professional coders I've discussed 
>this with -- and there haven't been that many -- have essentially said, 
>"Don't include expressions in Boolean logic statements if thos 
>expressions have side effects. Rather, evaluate the expressions outside 
>the Boolean logic statement."
>
>  
>
In other words:

Cleanliness is next to buglessness.

Ray


Ray G. Miller
__________________
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:rgmiller at pacbell.net
(V) 510.530.1971
(F) 510.482.3491






More information about the use-livecode mailing list