Re: while (1) vs. for ( ;; )



"akarl" <fusionfive@xxxxxxxxx> wrote in message
news:Gk5Re.145282$dP1.501562@xxxxxxxxxxxxxxxxxx
>
> You don't see the point. The `bool' type in stdbool.h is primarily for
> (self) documentation purposes. That a lint tool such as Splint can
> detect incorrect usage is an extra bonus.

Actually, I have been using an equivalent user type for years, like most
programmers I know.
It was not really a type, just a typedef and a pair of #define for TRUE and
FALSE
stdbool goes a little bit beyond that, but cannot fix the lack of a true boolean
paradigm in C, and lowercase true and false make me think too much of java...

So I agree with your point, but still prefer for(;;)

Chqrlie.


.