emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing line widths in the Emacs source code


From: Göktuğ Kayaalp
Subject: Re: Changing line widths in the Emacs source code
Date: Sun, 13 Sep 2020 21:07:44 +0300
User-agent: mu4e 1.2.0; emacs 28.0.50

On 2020-09-13 20:29 +03, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> We're definitely going in the opposite direction, though -- with the
> introduction of lexical binding, the popular style is to create a bunch
> of closures that refer to the surrounding environment, and that leads to
> more nesting.

Tangentially, is passing around environments something any programming
languages do? E.g.

(defun x (env)
  (using-environment env
    (message "I am %s" name surname)))

(defun y (name)
  (let ((surname "McCarthy"))
    (x (capture-environment-as-closure))))

(y "John")

That would be one cool feature to have in Elisp.

-- 
İ. Göktuğ Kayaalp / @cadadr / <https://www.gkayaalp.com/>
pgp:   024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427



reply via email to

[Prev in Thread] Current Thread [Next in Thread]