2016-04-02
A Note on Dynamic Scope
This note complements the discussion on dynamic scope from PLAI (Sect 5.2). The book regards dynamic scope simply as a mistake. In doing so, it fails to recognize the value of dynamically-scoped bindings, which most modern languages support in some way or another, for good reasons.
The bottom line is that dynamic scope by default is indeed a mistake, but dynamic scope as a feature is not.