Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joel on Software
Message
From
18/05/2005 23:14:55
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
18/05/2005 11:23:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01014573
Message ID:
01015680
Views:
28
>>When I can pick up a piece of code I wrote 5 years ago and immediately know the data type of the variables involved, I save a lot of time and energy and am much less likely to make mistakes in modifying that code.

I'd tend to agree- especially in an untyped variable scenario where the compiler will not catch variable type mistakes.

There is also the issue of variables sharing the name of a field in the currently selected cursor.

e.g.
mynewvariable=myvar1+myvar2
if there is a field myvar1 in the currently selected cursor, it will be used in the above concatenation. Adding a l prefix for such a variable prevents this 100%.

Regards

j.R
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Reply
Map
View

Click here to load this message in the networking platform