Comment

Comment by geocar

Richard Stallman gave an excellent use and rationale for dynamic scope in the EMACS manual:

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

One of my favourite things about perl and CL is the ability to have lexical (my/let) and dynamic (local/special) scope in the same program depending on what is clearer.

In fact, it comes up often enough that programming in a language lacking dynamic scope (e.g. basic, JavaScript, or python) feels limiting sometimes, and I end up emulating it (settings+extend, observables, etc).

parent geocar 13 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton