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: Thu, 19 Jan 2023 14:21:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Emanuel Berg <incal@dataswamp.org> writes:

> Michael Heerdegen wrote:
>
> >>> 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.
>
> Why should the not be, aren't they anonymous functions?

Note I mean the expression, not the values they eval to.

The (unevaluated) expressions are just lists.  As values they are
"quoted lambdas" with all of the problems they come with.  The Elisp
interpreter still accepts them as function values.

Michael.




reply via email to

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