C is not superfluous (Re: "for" loops (was Re: C++ vs. Modula2))

T. William Wells bill at twwells.uucp
Thu Feb 2 04:19:16 AEST 1989


In article <1315 at goofy.megatest.UUCP> djones at megatest.UUCP (Dave Jones) writes:
: From article <348 at twwells.uucp>, by bill at twwells.uucp (T. William Wells):
: > In article <1626 at csuna.UUCP> abcscagz at csuna.csun.edu (Jeff Boeing) writes:
:
: > : ... a C "for" loop is superfluous
: > : because it can be replaced by an equivalent "while" loop, NOT an
: > : equivalent "do ... while" loop:
: >
: > C is superfluous because it can be replaced by an equivalent assembly
: > program.
: >
:
: Nice try, but this reductio ad absurdum doesn't stand up under scrutiny.

: ...

: Indeed, many C-compilers translate to assembly language, but -- and
: this is important -- not always the same one.  Thus C is a mechanism for
: machine-independence. The "reductio" by analogy to replacing
: C-code with an "equivalent" assembly language program just doesn't hold up.

Oh, I agree. But my point was just that the argument: "The for loop
is superfluous because..." is just as relevant to the importance of
the for loop as my "C is superfluous because..." is relevant to the
importance of C. Which is to say, not at all.

---
Bill
{ uunet!proxftl | novavax } !twwells!bill



More information about the Comp.lang.c mailing list