TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bo Simonsen
from: Bill Birrell
date: 2004-05-09 11:00:00
subject: Merits

Hi Bo,

 BB>     UNTIL is not a keyword in C, but I agree with the sentiment.

    The sentiment I was agreeing with was that "you pays your penny
and you takes your choice." I.e. if there are many ways to do
something it is a little hidebound to restrict yourself to one of them.
However that goes with the caveat that I do not EVER have pages and pages
of code inside a function in C. It is so easy to define new functions that
it is silly to complicate your life by failing to do so.

    Obviously I knew about do {...} while() loops, thank you. They ensure
that the body of the loop is executed at least once, and that is their sole
virtue. "Do" is a keyword in C, "while" is also a
keyword; "until" is not. Unless it is defined as a macro or a
function, using "until" in a C program will simply introduce
newbies to yet another source of syntax errors.

Best Wishes,
Bill.

---
* Origin: Escan BBS (2:25/200)
SEEN-BY: 633/267 270
@PATH: 25/200 108 252/110 250/501 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.