Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One exit per procedure/function/codeblock to what purpos
Message
De
08/10/2003 18:16:24
 
 
À
08/10/2003 18:08:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00835552
Message ID:
00836548
Vues:
16
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform