|
|
|
|
|
by bluejekyll
3568 days ago
|
|
This definitely seems to vary among different languages, and is something I've always been annoyed with in C++. Scoping outside the for loop is rarely useful, but often creates bugs. The one case where I like it is for searching an array and wanting the index, but even then it's not necessarily elegant. |
|
i++ is obviously changed the value of a single i variable. Who thinks it's creating a new i somehow?