Re: Short Circuit message

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

I find the warnings useful. But I have to agree about the short circuit
warning.. I don't think I have ever written code where I didn't
intentionally  make the shortcircuit.
The only problem I frequently encounter in that department is using 'or'
instead of 'and' or vice versa.
And I quite often use the short circuit when I need to execute a command
only on success of another (especially in exotica), so that warning does get
particularly annoying.
Also, I think it's the only warning message that will remain in your
program, even if it executes succesfully.

PS. Rob, will 2.3 support relative paths for include staements?
IE.
---file_a.ex
 include libs/lib_a.e

--lib_a.e
include ../lib_main.e

There was something else I was thinking of on this subject, but it escapes
me. It was discussed before. :P
Maybe it'll come to me, or maybe someone else remembers.

Chris

----- Original Message -----
From: "David Cuny" <dcuny at LANSET.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, July 29, 2001 3:17 PM
Subject: Re: Short Circuit message


>
> Bernie Ryan wrote:
>
> > There are many times when it is desirable to write
> > short circuit routines for speed or sometimes they
> > are unavoidable.
>
> I find some warnings useful - variables not used, sections of code not
> reachable, etc. The short circuiting feature I don't personally find
useful,
> but then there may be others that do.
>
> Perhaps there should be a "pedantic mode" option? smile
>
> -- David Cuny
>
>
>
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu