avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts tha


From: Douglas Dotson
Subject: Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing
Date: Mon, 20 Dec 2004 12:44:29 -0800 (PST)

--- "E. Weddington" <address@hidden> wrote:

> Dave Hylands wrote:
> 
> >>The compiler will always barf if the constant is
> on the left because
> >>you can not assign a value to a constant.
> >>    
> >>
> >
> >I always found that little tidbit (putting the
> constant on the left) to
> >be amusing.
> >
> >I figure if I can remember to put the constant on
> the left (which isn't
> >natural for me), then I can remember to use '=='
> when I'm supposed to.
> >
> >Perhaps it's because I already knew C the first
> time I heard about that
> >little practice, and you know what they say about
> old habits dying hard.
> >
> >  
> >
> 
> I agree wholeheartedly!! :-)

I agree as well! I see so many crutches hoping to
overcome actually thinking. Using awkward and
unusual constructs only serves to make the code
harder to understand and maintain. Using tools
such as LINT is a good idea and can't hurt.

 
 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]