Open main menu

CDOT Wiki β

Changes

Team !YOU - OOP344

134 bytes added, 12:17, 26 January 2010
m
(Discussion: Use of iterating variables on for loops)
| MattAdams || I like both ways. I use option1 when I need to use the counter for something else. And I use option2 when I need to right a quick for loop. As for a standard, I think option1 should be used, that way all of the variables are declared at the top of every function, and that way we don't have to copy the counter to another variable.
|-
 
| Mddaniels || I agree with option one, there are plenty of times when you need the counters saved for use later in the function.
|-
|}
1
edit