Skip to main content
5 events
when toggle format what by license comment
Jul 18, 2016 at 16:12 comment added Ariel I vaguely remember that dynamic scoping refers to the first case here (borrow the environment from where you are created). It seems there are three terms, what is the accepted terminology?
Jul 18, 2016 at 16:12 comment added Ariel I'm confused as to which of the two scopings in question is called dynamic. In the accepted answer in this post, stackoverflow.com/questions/958983/…, dynamic scoping is refered to as the second case here (borrow the environment from where you are called), whereas static scoping is refered to as "lexical scoping" (which, to my understanding, means that the bindings are determined based on the code structure, more syntax less semantics).
Jul 18, 2016 at 14:33 comment added Andrej Bauer Because in most situations static scoping is what is needed in practice. There are few cases where dynamic scoping is the correct one.
Jul 18, 2016 at 9:51 comment added user6245072 Why is it? Why do languages mostly use static scoping?
Jul 18, 2016 at 9:24 history answered Andrej Bauer CC BY-SA 3.0