安身立命 國二下 (2016/03/29 13:36)
Dynamic scoping從 Call Stack 找 Scope
Static Scoping從 Definition 找 Scope
ShallowBinding gives good performance when looking up variables, but makes the implementation of DynamicClosures difficult. MacLisp, for example, only solved the "downward funarg" problem, and not the "upward funarg" problem.