Mark S. Miller (2014-06-05T15:17:22.000Z)
domenic at domenicdenicola.com (2014-06-10T19:05:41.337Z)
Why not accept these as for-loop initializations, so that x actually has that function and that class as its initial value in the first iteration of the loop? To me, that's the least surprise. Since this is a position in which some declarations are accepted, anything there that looks like a declaration should be a declaration. However, I agree that banning these is much less surprising than allowing them as expressions rather than declarations.