Skip to content
Advertisement

Tag: scoping

What is lexical scope?

What is a brief introduction to lexical scoping? Answer I understand them through examples. 🙂 First, lexical scope (also called static scope), in C-like syntax: Every inner level can access its outer levels. There is another way, called dynamic scope used by the first implementation of Lisp, again in a C-like syntax: Here fun can either access x in dummy1

Advertisement