do-while construct
Carrick Talmadge
clt at pur-phy
Sat Oct 8 10:23:22 AEST 1988
Here is something I've always wondered about with regards to C.
Why is it that the syntax for do-while is
do statement; while (expression) ;
rather than what I'd think would be more useful:
do statement; while (expression) statement;
where "statement;" could of course be a compound statement. I've seen
this more general construct in other languages, so it seems like it could
be done. I'm curious to hear if anyone has heard a rationale for why it
was left out of the language.
Carrick Talmadge
clt at newton.physics.purdue.edu
-------
The problem with this country is, if you shoot/hang/fire one bureaucrat,
they hire two more to take his place...
More information about the Comp.lang.c
mailing list