Hacker News new | ask | show | jobs
by cafard 3863 days ago
"my" arrived after "local". The former is true lexical scoping, the latter isn't quite.
1 comments

Right. As gp says, "local" is dynamic scoping.

It's available as long as the declaration stays on the call stack. It more-or-less allows globals to be temporarily redefined.

Think locally, act globally.