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



Tim Rentsch wrote:

> I was surprised at how many people reported that a compiler
> they use issues a warning for 'while(1)' and gave that as a
> reason for giving preference to the 'for(;;)' form. It
> seems like a choice should be made on the basis of what's a
> better expression (lower defect rate, higher productivity,
> better understood by the readers), not on the basis of some
> errant warning message.

The warning is the tie breaker.

There is no difference in defect rate,
productivity, or understanding by the readers.

--
pete
.



Relevant Pages

  • Re: How Long is Jewish New Year?
    ... > SCJM is in _no_ way a psak or definitive ruling. ... People should err on te side of caution, ... The warning that readers should err on the side ...
    (soc.culture.jewish.moderated)
  • Re: OFF TOPIC: Two Very Powerful Videos
    ... Yiiiiiiiiiiikes. ... You might have supplied some advance warning with ... Though I guess some other readers are just shrugging this ...
    (rec.music.beatles)
  • Re: What are the odds . . .
    ... Edwin's record of correct predictions about ... Warning to readers of CSMA: ...
    (comp.sys.mac.advocacy)
  • Re: What are the odds . . .
    ... to purchase iPhone 3G's that are unlocked. ... Warning to readers of CSMA: ...
    (comp.sys.mac.advocacy)
  • Re: OFF TOPIC: Two Very Powerful Videos
    ... Yiiiiiiiiiiikes. ... You might have supplied some advance warning with ... Though I guess some other readers are just shrugging this ...
    (rec.music.beatles)

Loading