Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00365597
Message ID:
00365690
Vues:
12
>I guess we'll have to agree to disagree, then. :)
>
>I'd much rather see:
>
>IF X = 1 && Some explanation
>
>Than:
>
>IF X = ccSomeConstant
>
>To me, that's more readable.
>
Michelle,

Assume that the same condition had to be tested in multiple places. Let's say it was the return value of some widely used function. Further, assume that the value of one meant that the operation succeeded, otherwise it failed. Now, if you use: IF x = 1 && The operation succeeded, you're going to have to use that everywhere. Yet: IF x = SUCCESS it is just as readable. Further in tracing the code, you would care want the actual value was and you'd know if the code following executed, that the condition was met.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform