GNU bug report logs -
#72344
[PATCH] Add a version of cl-once-only which handles lists of forms
Previous Next
Reported by: Thuna <thuna.cing <at> gmail.com>
Date: Sun, 28 Jul 2024 21:18:02 UTC
Severity: wishlist
Tags: patch
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello,
On Sun 04 Aug 2024 at 12:40am +02, Thuna wrote:
> I've written a draft for what it could look like. It needs proofreading
> and editing, but it should be a fine-ish place to start from at least.
> It uses `cl-once-only*' as the name of the macro but that's just a
> placeholder for now.
Looks good. I wonder if it might be easier to read if you could somehow
extend the example I used for cl-once-only ?
> (Do we want a NEWS entry also?)
Yes, probably appropriate.
> I've also made it so that the first argument can either be of the form
> (VARIABLE FORMS) or VARIABLE - how it worked before - which stands for
> (VARIABLE VARIABLE), so as to keep parity with `cl-once-only'.
Nice.
>> I think we should reserve the starred name for now. As you said, your
>> macro doesn't come up often, and we might later come up with a variant
>> of cl-once-only that we want to use very often.
>
> I see that point, and it is completely fair. I have no problem
> conceding the starred name.
Cool.
>> cl-seq-once-only ?
>
> How about `cl-once-only-multiple'? The name should probably be of the
> form `cl-once-only<something>', rather than `cl-<something>-once-only' I
> think.
There are already several cl-multiple-... so maybe cl-once-only-mult ?
cl-once-only-multiple is fine with me, though.
--
Sean Whitton
This bug report was last modified 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.