Re: Short-circuit warning

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

Jeremy Cowgar wrote:
> 
> Jason Gade wrote:
> >  
> > No one is talking about doing away with short circuiting. We're talking
> > about
> > whether there should be a warning in the short circuiting case.
> > 
> 
> Here is my proposal. Add an option to ecu/ex/exw/exwc called -lint. lint is
> a common tool name that checks for common mistakes that may pass the parser
> but may cause problems later.
> 
> Disable such warnings as Short-circuit. Encourage new programmers to use the
> -lint option frequently to analyze their code. After a very short amount of
> time even a new programmer should not need the short circuit warning.

[snip]

I could go with that. I've never used lint but I'm familiar with the concept.

But I also like with/without strict. I need to refresh my memory of what all the
(useful) warnings are.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu