in reply to my within a loop

That code is perfectly fine. In effect, a new var is created every time. As an optimisation, the same variable is reused when possible.