The most common pitfall with scope arises in parallelization. All variables and functions must be passed into a new environment that is run on each thread.
Environments and Functions
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0