Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One exit per procedure/function/codeblock to what purpos
Message
From
08/10/2003 18:16:24
 
 
To
08/10/2003 18:08:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835552
Message ID:
00836548
Views:
14
>>As a final note, I don't believe in using LOOP in a DO...ENDDO either; I consider the practices equivalent. It would be interesting to see if anyone pooh-poohs the use of LOOP, while advocating intermediate RETURNs.
>
>
>You're gonna lough about this.
>The worse i have ever seen (in a large mrp app): they did the following:
>
>do while ...
>   * *** some code
>   loop
>enddo
>
>As to the multible exit points: i usually do not use multible, but sometimes it makes life easier and more readable. However, when i do, i usually try to do them before all of the main code starts.
>
>Just my 2c

That's a good one!

Unfortunately, my original message wasn't quite complete when I hit enter by mistake. All other replies should be to my other post. Thanks.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform