Gerald Pfeifer gerald@pfeifer.com writes:
This does not fix a bug or add a feature, but it makes the coder easier to follow. Narrower scope tends to be a good thing for variables, both for human readers and compilers (though modern ones should not need the hint).
Not necessarily, that's a matter of taste (IOW, not something you should "fix" in other people's code).