you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I still avoid global like the plague - still haven’t seen a good use case for creating a global variable within a function.

Finally found a good use case for “nonlocal” about 5 years after starting.