2 ms·
Yes it is shadowing. Every line of code starts a new scope.
by mrkeen 3y ago
Yes it is shadowing.
Every line of code starts a new scope.
- horsawlarway 3y agoAnd a redefinition changes the lexical scope of a variable in a way that shadowing does not... Scope is not about lines, it's about visibility.