News for hackers. Stuff that matters.
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.
Re:How One Missing `var` Ruined our Launch by gujk on Tuesday November 01, 2011 @12:07PM (#3182695)
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.