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

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

Re: Another question about lambdas


From: tomas
Subject: Re: Another question about lambdas
Date: Sat, 10 Dec 2022 20:33:19 +0100

On Sat, Dec 10, 2022 at 06:23:38PM +0100, Michael Heerdegen wrote:
> Hello,
> 
> My new question for today is:
> 
> What's the result of the following expression - and why?  Or maybe it is
> invalid?
> 
> #+begin_src emacs-lisp
>   (let* ((x 'l)
>          (f (lambda () x))
>          (x 'd))
>     (funcall f))
> #+end_src

I had to look that up in the elisp manual, and I must admit
I didn't find it very clear, but ultimately it says what will
happen.

Scheme docs are typically clearer, by explaining (let* ...) in
terms of nested (let ...). Perhaps that should go into the
Elisp manual, what do people think?

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

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