Quote:
Originally Posted by Skyld
Hm, in my opinion, it is better to always prefix variables. That way, there is no confusion as to which scope you are working in.
I try to write my scripts for people who have to work with them as well as for myself.
|
For myself, I only do this no-prefixing thing for temp variables, like how local variables in Java usually go without a prefix. So there is no confusion for myself. But also, all the temp variables are declared at the beginning so you know them already.
Edit:
I would like it if un-prefixed variables defaulted to
temp. rather than a global if no previous
temp. or
this. variables were found.