Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cool idea for SET commands
Message
From
27/07/2004 12:02:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/07/2004 11:37:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00928029
Message ID:
00928348
Views:
37
>*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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform