Closed ghost closed 3 years ago
Well, if it doesn't find the symbol in the current scope it goes up the scope chain...
Well, if it doesn't find the symbol in the current scope it goes up the scope chain...
This isn't what we expected from it.
Well... it may seem unusual but if that didn't work that way, you wouldn't be able to use those methods inside foreach, while, map etc. it works in the same way as lexical scoping: if the symbol is not found, it goes up the scope chain.
Why did it show
true
? Because i didn't define any symbol in the scope of quot.I am scaring to use scopes 😱