in reply to Re^2: Changing ENV values locally
in thread Changing ENV values locally
I know you know this, but it's worth mentioning another big advantage of local over the hand-coded equivalents exampled by your respondee.
The programmer (or another at some later time) may modify the code such that it returns without restoring the original value.
With local, this won't happen. The programmer might forget, but the compiler/interpreter will not.
|
|---|