Hacker News new | past | comments | ask | show | jobs | submit login

> I’ve used nonlocal 0 times ever.

Same here, but I got bitten by weird scoping rules quite a few times.

Separating variable definition from assignment (e.g. with 'let') would probably help a lot in this case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: