Right. I'm just saying I think the scope ought to be different. The 'x' in the loop should be a new variable each time because its not really 'a common variable between each of those functions'.
In the
for i := 0; i < 10; i++ {}
case it's definitely more clear that i should be the same thing between iterations. (So you can tinker with i inside the loop) It just seems like they could've done something different for the 'range' for loop.Javascript is plagued with this same problem (though its even worse because it doesn't even follow { } blocks)