Quote:
Originally Posted by Deas_Voice
just a question, not to hijack the thread, but, i've got this weird habbit of doing temp.foo when i'm assigning something to the variable, and foo if im checking it for something.
i.e.
PHP Code:
temp.foo = {10,20};
if (10 in foo) {
for (temp.var : {"food","desert","pluffy"}) {
temp.foo.add( var );
}
}
is this wrong too?
|
Once you declare a variable as temp you don't need to use the prefix again. You should, though—take it from someone who leaves it out and is trying to kick that habit after doing it for years.