Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
>>>How about using only one return statement in the function/procedure? I know, it's could be very difficult...
>>
>>My preference is like Frank's. Multiple returns is good:)
>>Cetin
>
>Read his reply in the thread <g> I use this myself, but always with a slight feeling of guilt...
You should have absolutely NO GUILT about using multiple returns.
It remains my conviction that this "axiom" of programming was introduced when languages offered BRANCH and GO statements.
VFP has none of this stuff (GO is not to code in VFP) so that axiom does not apply. Period.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement