Re:How One Missing `var` Ruined our Launch
by colanderman on Tuesday November 01, 2011 @09:21AM
(#3181836)
Umm, I find the opposite to be true. By always declaring variables where I use them (notably in for loops), I avoid accidentally reusing a variable I used elsewhere.
[ Parent
| on HN ]
That is a special case. Loop headers should be considered the top of scope blocks in C. I don't know why the language designers didn't do that.
Re:How One Missing `var` Ruined our Launch
by JoshTriplett on Tuesday November 01, 2011 @04:02PM
(#3183900)
They did, in C99.