emacs-devel
[Top][All Lists]
Advanced

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

Re: Distinguishing `consp` and `functionp`


From: Eli Zaretskii
Subject: Re: Distinguishing `consp` and `functionp`
Date: Mon, 29 Jan 2024 18:10:40 +0200

> From: João Távora <joaotavora@gmail.com>
> Date: Mon, 29 Jan 2024 15:54:04 +0000
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
> 
> I don't think there is much space for philosophy or debate in noting
> for example, that a list as lambda won't get byte-compiled like a
> true lambda form.
> 
> (byte-compile '(let ((bla (lambda () (+ 42 42))))
>                  (funcall bla))) ;; -> (byte-code "\300\211 \207" [#[0
> "\300\207" [84] 1]] 2)
> 
> 
> (byte-compile '(let ((bla '(lambda () (+ 42 42))))
>                  (funcall bla)));; -> (byte-code "\300 \207" [(lambda
> nil (+ 42 42))] 1)

I wonder why you considered that IU need this lecture.

> Stefan's patch moves us in the right direction if just for the guidance
> it gives to ignorant Lispers like the one who introduced that bug circa 2009.

I'm glad we have your approval.  What would we do without it?



reply via email to

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