Closed luis-pereira closed 3 years ago
A local variable shouldn't shadow a outer variable.
It had no problem, IMHO, but yes, avoiding it may prevent confusion for the code reader. GTM
The compiler keeps track of the scope. But the reader, might not. This is a readability issue, of course.
A local variable shouldn't shadow a outer variable.