[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52063: 28.0.60; Confusing presentation of lambda
From: |
Stefan Monnier |
Subject: |
bug#52063: 28.0.60; Confusing presentation of lambda |
Date: |
Mon, 29 Nov 2021 12:58:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> My point is that if we're extending the `lambda' syntax, we might as
> well do it in a way that allows further easy expansions in the future.
And my point is that we're not discussing the syntax of `lambda` but the
representation of function values.
[ I agree with the above, BTW. I just don't think it is relevant to the
problem at hand. ]
>> Also, I think it's good if the source syntax is a bit different from the
>> function value syntax: we want the two to be *similar* so the function
>> value feels familiar and can intuitively be understood, but we also want
>> to make it clear that we're looking at something
>> fundamentally different.
>> That's why I'd favor a representation of the form #[...] or #<...> or ...
> Hm, right... I think I'm in favour of demystifying, not further
> mystifying things for the users.
Currently the vast majority of functions in Emacs's heap (i.e. function
*values*) get printed either as a symbol or as #[...] or as #<subr...>.
The (lambda ...) and (closure ...) cases are in the minority and I think
it would be good to try and eliminate these cases as much as possible
(we'll probably have to keep supporting it for backward compatibility,
but we can stop generating them ourselves).
Stefan
- bug#52063: 28.0.60; Confusing presentation of lambda, (continued)
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Stefan Monnier, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Stefan Monnier, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Stefan Monnier, 2021/11/26
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/27
- bug#52063: 28.0.60; Confusing presentation of lambda, Stefan Monnier, 2021/11/27
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/29
- bug#52063: 28.0.60; Confusing presentation of lambda,
Stefan Monnier <=
- bug#52063: 28.0.60; Confusing presentation of lambda, Michael Heerdegen, 2021/11/30
- bug#52063: 28.0.60; Confusing presentation of lambda, Lars Ingebrigtsen, 2021/11/30
- bug#52063: 28.0.60; Confusing presentation of lambda, Eli Zaretskii, 2021/11/24