[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Adding with-gensyms and once-only to subr-x
From: |
Sean Whitton |
Subject: |
Re: [PATCH] Adding with-gensyms and once-only to subr-x |
Date: |
Mon, 11 Apr 2022 10:01:09 -0700 |
User-agent: |
Emacs/29.0.50 (x86_64-pc-linux-gnu) |
Hello,
On Mon 11 Apr 2022 at 12:48pm -04, Stefan Monnier wrote:
>> Lately I have been finding myself wanting with-gensyms and once-only,
>> two classic macro-writing macros, available in core Elisp. (There is
>> already org-with-gensyms, but it's not in the least bit Org-specific.)
>
> I think `once-only` is what we (well, I) called `macroexp-let2`.
Ah, thank you for the pointer.
(macroexp-let2* nil ((foo foo) (bar bar)) FORMS)
is quite a bit more verbose than (once-only (foo bar) FORMS), however.
So I would be inclined to keep once-only, though reimplemented in terms
of macroexp-let2*. Does that sound reasonable?
--
Sean Whitton
- [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Stefan Monnier, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x,
Sean Whitton <=
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Stefan Monnier, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Stefan Monnier, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Stefan Monnier, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Stefan Monnier, 2022/04/11
- Re: [PATCH] Adding with-gensyms and once-only to subr-x, Sean Whitton, 2022/04/12