The rap against "while True:" loops

TerryP bigboss1964 at gmail.com
Wed Oct 14 12:14:43 EDT 2009


When all is said and done, is not all looping *basically* equivalent
to something like this?

  begin_loop:
    unless TEST
      goto end_loop
    ;; loop body here
    if TEST
      goto begin_loop
  end_loop:

Which could likely be used to implement something like:

  while TEST:
    # loop body here

in any highly expressive language; which in of it self displays
something about Computer Science.


or am I just talking out my ass?



I've watched this thread with some interest, but really it sounds to
me like the metrics are getting rather lax and this will probably end
up on par with a for (i=0; i < count; i++) versus for (i=0; i < count;
i--) discussion. By that, I mean:


  Fruitful conversation but there is no one spoon for every bowl.

--
  TerryP.
Just Another Programmer.



More information about the Python-list mailing list