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

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

Re: Lambdas for beginners broken - help, please


From: Michael Heerdegen
Subject: Re: Lambdas for beginners broken - help, please
Date: Wed, 24 Jul 2024 21:58:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

tpeplt <tpeplt@gmail.com> writes:

> If what is written by the OP correctly describes what happens with the
> latest development sources, then the description in the manual:
>
> >  #f(lambda (n) [t] (+ n 2))
>
> is not the same as what comes from evaluation:
>
> >   #[(n) ((+ n 2)) nil]

Ah, ok.

This is not about the binding mode but about which printer is used to
produce the printed representation.  The built-in printer produces the
second form of output, while cl-print produces the first form.  For

  (defun bar (n) (+ n 2))

compare

  (prin1-to-string (symbol-function 'bar))

vs.

  (cl-prin1-to-string (symbol-function 'bar))

So it depends on settings or commands used.  Dunno if the formats should
be unified.  Maybe it would be better.


> Also, my reply was meant to help illustrate that Emacs 29 does not show
> the discrepancy between documentation and evaluation that the OP
> describes.  Does this make his question more appropriate for the
> ‘emacs-devel’ mailing list?

Here is good for now I think, most involved people read this list.


Michael.




reply via email to

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