× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 3/1/07, Wes Reinhold <WesR@xxxxxxxxxxx> wrote:
There was a lot of 'bad mouthing' of iter, leave, etc. yesterday.  How
would you get out of a DOW 0=0 without using them?



Why would I say 'Do Forever' unless I meant it?

I don't code infinite loops.

Part of self-documenting code is the 'invariant' of the do loop; that is, the
explicitly stating the conditions required to end the loop.

To say 'Do Forever' and the LEAVE/ITER is to say 'I'm going to loop
for an indeterminate
amount of time, and then randomly execute a GOTO'.

In my opinion, of course.


It is not my intention to 'bad mouth' the GOTO/LEAVE/ITER constructs. If I ever
need one, I will use it. I have just never needed one.

Chris
--
chris@xxxxxxxxx           | Mama killed a chicken
www.pando.org             | Thought it was a duck
                         | served it on the table
                         | with its legs stickin' up

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.