Re: while (1) vs. for ( ;; )
- From: "Charlie Gordon" <news@xxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 02:02:51 +0200
"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.
.
- References:
- while (1) vs. for ( ;; )
- From: Michael B Allen
- Re: while (1) vs. for ( ;; )
- From: Chris McDonald
- Re: while (1) vs. for ( ;; )
- From: Ben Pfaff
- Re: while (1) vs. for ( ;; )
- From: Chris McDonald
- Re: while (1) vs. for ( ;; )
- From: Charlie Gordon
- Re: while (1) vs. for ( ;; )
- From: akarl
- Re: while (1) vs. for ( ;; )
- From: Charlie Gordon
- Re: while (1) vs. for ( ;; )
- From: Keith Thompson
- Re: while (1) vs. for ( ;; )
- From: Charlie Gordon
- Re: while (1) vs. for ( ;; )
- From: akarl
- while (1) vs. for ( ;; )
- Prev by Date: Re: low-level question
- Next by Date: Re: while (1) vs. for ( ;; )
- Previous by thread: Re: while (1) vs. for ( ;; )
- Next by thread: Re: while (1) vs. for ( ;; )
- Index(es):