On 04/09/2021 08.53, Hope Rouselle wrote:
Chris Angelico <ros...@gmail.com> writes:

And at this point, it's looking pretty much identical to the for loop
version. Ultimately, they're all the same and you can pick and choose
elements from each of them.

I see.  That's why C must have added the do-while, but yeah --- it's not
really worth it.

Kernighan and Ritchie agree(d) with you. Per _The C Programming
Language__:
  Experience shows that do-while is much less used that while
  and for.

(Second edition, Section 3.6, page 63)

--
Michael F. Stemper
Outside of a dog, a book is man's best friend.
Inside of a dog, it's too dark to read.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to