do...until wisdom needed...

Andrew Dalke dalke at acm.org
Tue Apr 17 19:22:23 EDT 2001


Benjamin.Altman wrote:
> Someone in this thread mentioned that they needed to go back
> to k&h to recall it and I can't quite understand why (even though
> you might say that recollection and simplicity are mutually
> exclusive).

That was me.  I use that construct in C so infrequently that it
merges with my memories of the same construct in other languages
so I forget if it's

  do { .. } while();
  do { .. } until();
  repeat { .. } while();
or
  repeat { .. } until();

The name of this thread shows the problem.  Why is it
named "do...until" instead of "do...while" ?

                    Andrew
                    dalke at acm.org






More information about the Python-list mailing list