3 ms·
"my" arrived after "local". The former is true lexical scoping, the latter isn't quite.
by cafard 11y ago
"my" arrived after "local". The former is true lexical scoping, the latter isn't quite.
- tbrownaw 11y agoRight. 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.
- DonHopkins 11y agoThink locally, act globally.