Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Argument starter - The roots of all evil
Message
From
08/09/2004 09:42:21
 
 
To
08/09/2004 09:26:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00938079
Message ID:
00940260
Views:
41
SNIP

>Terry,
>PMFJI
>LOOP might be (hardly) avoided under all circumstances but I simply can't understand how a VFP coder can live w/o EXIT and multiple RETURNs provided cares for performance (not only VFP really).
>Never say Never:)
>Cetin

Cetin
NAAJIIYW
I can't see how a developer can live with himself with multiple returns! :-)
I've conceded that the odd *small* routine with a for... EXIT.. EndFor to, say, look up in a large list, could be tolerated and, indeed, as Tamor's research has shown, can be beneficial performance-wise. But why need loops? e.g:
Scan
  If <condition>
      LOOP
  Endif
  Meat
endscan
can easily be replaced with
Scan
  If not <condition>
      Meat
  Endif
endscan
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform