[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 11:41:13 -0700 |
User-agent: |
Emacs/29.0.50 (x86_64-pc-linux-gnu) |
Hello,
On Mon 11 Apr 2022 at 01:26PM -04, Stefan Monnier wrote:
> How 'bout making `macroexp-let2*` accept the shorter form as in the
> patch below?
Nice. Good with me. (I thought about extending macroexp-let2* but
didn't think about the idea of making the first argument optional.)
> I'm not in love with the name `macroexp-let2*` but I find the name
> `once-only` to lack context. So we could consider renaming, but I'd
> favor making it live in `macroexp.el` (and come with a `macroexp-`
> prefix). It could be called `macroexp-once-only` or
> `macroexp-eval-now`, or we could go crazy with names like
> `macroexp-copyableize`.
How about I add an alias cl-once-only, maybe which doesn't accept the
TEST argument at all? It can go in cl-macs.el.
'once-only' is the very well-established CL name for this macro,
referenced in all of "Practical Common Lisp", "Paradigms of AI
Programming", "Let Over Lambda" and I think "On Lisp" too. Speaking as
someone who has written more CL than Elisp, I would find it helpful to
have it under that name, and I should think others would too.
--
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, 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, 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