3 ms·
I don't know my Emacs timeline very well, but I'd be nervous about lexical scope and the more recent cooperative async features of Emacs (lisp) not being repres
by ragnese 5y ago
I don't know my Emacs timeline very well, but I'd be nervous about lexical scope and the more recent cooperative async features of Emacs (lisp) not being represented in a 20 year old book.
EDIT: Yeah, Emacs 24 had support for lexical scope, and that was in 2012. You'd be doing a disservice to yourself, IMO, to write dynamically scoped Elisp today, unless you had a specific reason. And if you don't even KNOW that lexical scoping is an option, it would be unfortunate.
- draven 5y agoI checked the book's TOC and was surprised to see that lexical scoping was introduced in the last chapter. https://github.com/alphapapa/emacs-package-dev-handbook#lexical-binding-1 https://github.com/alphapapa/emacs-package-dev-handbook#lexi... says using lexical scoping is a best practice.