Re: Short-circuit warning
- Posted by Derek Parnell <ddparnell at big?o?d.com> May 20, 2008
- 661 views
Andy Drummond wrote: > > When I first used Euphoria the docs DID describe the short-circuiting process. > It was very clear, and made coding easier with things like: > }}} <eucode> > if atom(res) or length(res)=0 or res[1]='+' then > do something > end if > </eucode> {{{ > To do that with three nested if statements would be silly. By the way, it used to be that short ciruiting was significantly slower than coding multiple IFs. I don't know if that situation has changed or not. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell