Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Joel on Software
Message
De
19/05/2005 14:56:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
19/05/2005 12:07:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01014573
Message ID:
01015964
Vues:
37
>>>However this discussion is more about the hungarian notation, where the prefix is indicating type and scope. Since 99% of all variables are (should be) local there is no need to indicate scope unless it is a public or private.
>>
>>FWIW, I agree with you on the scope issue. I use a scope prefix only for the rare public variable, but I find the one letter type indicator extremely valuable.
>
>I find the scope prefix to be helpful. For example, you don't have to scroll up to the LPARAMETERS statement to determine whether a variable was passed as a parameter or declared as LOCAL in a routine.

On this one I love the t (for parameTer) prefix. Most of the time (and I'm getting less and less lazy on that one), my parameters are called tcSomeString, tuValue ("u" for "undefined or pretty much any type"), ttTime etc.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform