Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Argument starter - The roots of all evil
Message
De
08/09/2004 09:42:21
 
 
À
08/09/2004 09:26:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00938079
Message ID:
00940260
Vues:
40
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform