Hacker News new | ask | show | jobs
by meowface 615 days ago
Correct. It behaves like JavaScript and many other languages. You can't modify such variables in the outer scope from the inner scope unless you explicitly use the "nonlocal" declaration.