Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Argument starter - The roots of all evil
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00938079
Message ID:
00938404
Views:
29
I suppose there is a time and place for everything...and in a situation like that I guess it would make sense. In theory howver - isn't LOOP and EXIT command that shouldn't really exist? I mean if you use them you no longer have "proper" program flow (as far as a 'correct' algorythim). In an academic enviornment I suspect a teacher would lower your grade for using them....

>I've seen code with seven levels of imbeded IF's just to avoid using LOOP or EXIT. I would tale LOOP/EXIT any day over such code.
>
>>
>>I would argue that the introduction of those evil commands - LOOP and EXIT - was just for lazy programmers who can't be bothered to restructure (indent etc.) their control loops when they suddenly discover another condition, or change necesaary to the loops. They are unnecessary and should never have been introduced. Personally I have managed NEVER to use them. When you have to debug someone else's labrythine, monolithic code, with 20 yard long do while loops, and short-circuiting loops and exits liberally scattered in the code, just to complicate it even further, like I have, then you'd get to hate them.
>>
>>I'd challenge anyone to present code where they're necessary.
>>
>>While I'm at it, don't get me started on multiple RETURN statements in a function ...
>>
>>:-)
>>
>>Terry
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform