Posts: 32
Location: Rochester, NY USA
|
Nicky, it works that way because once upon a time, like when I learned to program in BASIC back in 1981, it was all too easy to accidentally change the value of a variable from anywhere in the program. Imagine having to step through hundreds of lines of code to find that one little typo that threw everything off. Having come from a place where there were no functions or variable scope (we used GOTOs, and every variable was global), this way makes it so much easier to work.
__________________
Always take into account what nobody would ever do in a million years, because someone will.
|