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



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.
.



Relevant Pages

  • Re: while (1) vs. for ( ;; )
    ... > Michael B Allen wrote: ... >> Should there be any preference between the following logically equivalent ... > makes the intention of the programmer clearer. ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... Michael B Allen wrote: ... > Should there be any preference between the following logically equivalent ... Prev by Date: ...
    (comp.lang.c)
  • while (1) vs. for ( ;; )
    ... Should there be any preference between the following logically equivalent ... I suspect the answer is "no" but I'd like to know what the consensus is ... Prev by Date: ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... >Should there be any preference between the following logically equivalent ... >I suspect the answer is "no" but I'd like to know what the consensus is ... Balmer Consulting ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... > Michael B Allen wrote: ... >> Should there be any preference between the following logically equivalent ... > whilegets a warning on my compiler. ...
    (comp.lang.c)