Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cool idea for SET commands
Message
De
27/07/2004 12:02:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/07/2004 11:37:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00928029
Message ID:
00928348
Vues:
39
>*My* prference is to see an exit as soon as possible and I don't particularly care if such code has to have some 'cleanup' (or whatever) conditions coded each time.

Sure, it's just a preference. Mine is to have early exits really early, before anything is really done.

>To *me* this business of a single exit point at the end only adds to the length of code I have to read for nothing. It also is more open to error when revising the code.

I've found that this "if lOK... endif" divides the code into chunks that can be easily skipped; having a single variable is also important here, because in cases where a separate variable was introduced for each condition tested, I've found the code harder to read.

It's just that I like to have my exits in the beginning or at the end; having to hunt them inside the business block of the code makes it just less readable.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform