Closing over the loop variable, part two  Closing over the loop
variable, part two  Rate This   • Comments 51   UPDATE: We are
taking the breaking change. In C# 5, the loop variable of a
foreach will be logically inside the loop, and therefore
closures will close over a fresh copy of the variable each time.
The "for" loop will not be changed. We return you now to our
original article.  Thanks to everyone who left thoughtful and
insightful comments on last week's post.  More countries really
ought to implement Instant Runoff Voting; it would certainly
appeal to the geek crowd. Many people left complex opinions of
the form "I'd prefer to make the change, but if you can't do
that then make it a warning". Or "don't make the change, do make
it a warning", and so on. But what I can deduce from reading the
comments is that there is a general lack of consensus on what
the right thing to do here is. In fact, I just did a quick
tally:  Commenters who expressed support for a warning: 26
Commenters who expressed the sent