help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Closures - do you understand them well?


From: Michael Heerdegen
Subject: Re: Closures - do you understand them well?
Date: Mon, 12 Dec 2022 07:09:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

tomas@tuxteam.de writes:

> > The expansion of (push `(lambda () ,i) funs) is
>                                      ^^^
> It was the "poor human's closure" in pre-lexical times,
> after all.

I wonder if that's a reason why lambda expressions where originally made
to be treated as functions.

> > #+begin_src emacs-lisp
> > (setq funs
> >       (cons
> >        (list 'lambda nil i)
> >        funs))
> > #+end_src
>
> Yes, the binding of i is effective before the lambda
> expression is "compiled" (whatever that means when you
> are playing interpreter, but it still means something,
> no?)

That's a somewhat quite meta question - but it very probably does mean
something (at least I know what you mean...)

Michael.




reply via email to

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