Ask HN: Why should variable shadowing be allowed?
Today I came across a term I had not heard of before: variable shadowing.
The general opinion about variable shadowing is that it is frowned upon for code readability and comprehension.
What would be a use case for programming languages to allow variable shadowing?
1 comment
[ 20.8 ms ] story [ 330 ms ] thread