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



"Chris McDonald" <chris@xxxxxxxxxxxxxxx> wrote in message
news:detv2b$ael$1@xxxxxxxxxxxxxxxxxx
> Ben Pfaff <blp@xxxxxxxxxxxxxxx> writes:
>
> I would suggest that both while(1) and for(;;) are potentially unclear
> to a person (undergrad. student) seeing C for the first time
> (while assuming they haven't seen Java or C++, either).
>
> OK, I suggest that while(true) is *clearer*.

BS

why not use the real clear thing :

WHILE (TRUE) {
}

or even

WHILE (TRUE == TRUE)
BEGIN
...
END

with obvious macro definitions for dummies ;-)

--
Chqrlie.


.



Relevant Pages

  • Re: while (1) vs. for ( ;; )
    ... > I would suggest that both whileand forare potentially unclear ... > to a person (undergrad. ... student) seeing C for the first time ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... > I would suggest that both whileand forare potentially unclear ... > to a person (undergrad. ... student) seeing C for the first time ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... > to a person (undergrad. ... student) seeing C for the first time ... > (while assuming they haven't seen Java or C++, ...
    (comp.lang.c)
  • Re: while (1) vs. for ( ;; )
    ... to a person (undergrad. ... student) seeing C for the first time (while assuming they haven't seen Java or C++, ...
    (comp.lang.c)
  • Re: xkcd
    ... how much the campus has changed, never a thought for pesky details like ... I went up to Nacogdoches to see SFA for the first time in... ... The UC (now the Student Center) really HAS changed to where I ... I never did find the fershlugginer mailboxes. ...
    (rec.arts.comics.strips)