Re: while (1) vs. for ( ;; )
- From: Chris McDonald <chris@xxxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 02:25:26 +0000 (UTC)
Michael B Allen <mba2000@xxxxxxxxxx> writes:
>Should there be any preference between the following logically equivalent
>statements?
> while (1) {
>vs.
> for ( ;; ) {
>I suspect the answer is "no" but I'd like to know what the consensus is
>so that it doesn't blink through my mind anymore when I type it.
Preference? Why not move on to something whose intention is clear:
while(true) {
--
Chris.
.
- Follow-Ups:
- Re: while (1) vs. for ( ;; )
- From: Kevin Handy
- Re: while (1) vs. for ( ;; )
- From: Ben Pfaff
- Re: while (1) vs. for ( ;; )
- References:
- while (1) vs. for ( ;; )
- From: Michael B Allen
- while (1) vs. for ( ;; )
- Prev by Date: Re: while (1) vs. for ( ;; )
- Next by Date: Re: pointers
- Previous by thread: Re: while (1) vs. for ( ;; )
- Next by thread: Re: while (1) vs. for ( ;; )
- Index(es):
Relevant Pages
|