[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Always-true predicate?
From: |
Lars Ingebrigtsen |
Subject: |
Re: Always-true predicate? |
Date: |
Sat, 20 Feb 2021 13:47:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I love functions, and am in no small part to blame for the use of
> functions like `ignore` as default value of variables (more often
> `defvar` than `defcustom`, but still), but indeed giving name to those
> functions is important: it's not just that `always` saves a few bytes
> over `(lambda (&rest _) t)` in the `.el` file (and then again in the
> `.elc` and in RAM), but also that `C-h v` gives more readable output
> (and if that value ever finds its way elsewhere, you can easily jump to
> its definition).
So we have some people for it, and some against it. If I read Eli
correctly, he was not strictly speaking against it, but more worried
that its presence would lead to more pure-predicate user options in
general. I agree that those should be avoided, but `always' is still a
handy, obvious value that should be available in the users' repertoire
when constructing their own predicates (like with `ignore').
So I've now added it to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Always-true predicate?, (continued)
- Re: Always-true predicate?, Eli Zaretskii, 2021/02/19
- Re: Always-true predicate?, Eli Zaretskii, 2021/02/19
- Re: Always-true predicate?, Stefan Kangas, 2021/02/19
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/19
- Re: Always-true predicate?, Eli Zaretskii, 2021/02/19
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/19
- Re: Always-true predicate?, Eli Zaretskii, 2021/02/19
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/19
- RE: [External] : Re: Always-true predicate?, Drew Adams, 2021/02/19
- Re: Always-true predicate?, Stefan Monnier, 2021/02/19
- Re: Always-true predicate?,
Lars Ingebrigtsen <=
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/20
- Re: Always-true predicate?, Stefan Monnier, 2021/02/20
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/20
- Re: Always-true predicate?, Stefan Monnier, 2021/02/20
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/20
- Re: Always-true predicate?, Stefan Monnier, 2021/02/20
- Re: Always-true predicate?, Robert Pluim, 2021/02/21
- Re: Always-true predicate?, Lars Ingebrigtsen, 2021/02/21
- Re: Always-true predicate?, Stefan Kangas, 2021/02/19
- Re: Always-true predicate?, Eli Zaretskii, 2021/02/19