Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MESSAGEBOX
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00365597
Message ID:
00365690
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform