What are the advantages of dynamic scoping?

后端 未结 10 930
迷失自我
迷失自我 2020-12-14 01:21

I\'ve learned that static scoping is the only sane way to do things, and that dynamic scoping is the tool of the devil, and results only from poor implementations of interpr

10条回答
  •  粉色の甜心
    2020-12-14 01:42

    This classic article by Richard Stallman (of GNU/Linux, Emacs, FSF) explains why dynamic scoping is important to the Emacs editor and the Emacs Lisp language. In sum, it is useful for customizing.

    http://www.gnu.org/software/emacs/emacs-paper.html#SEC17

    See also this page on the Emacs wiki, for more info about the use of dynamic scoping in Emacs Lisp:

提交回复
热议问题