GNU bug report logs - #57907
29.0.50; Using keywords with cl-loop

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Sun, 18 Sep 2022 12:05:01 UTC

Severity: normal

Found in version 29.0.50

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 57907 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57907 <at> debbugs.gnu.org
Subject: Re: bug#57907: 29.0.50; Using keywords with cl-loop
Date: Sun, 18 Sep 2022 12:46:18 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Philip Kaludercic <philipk <at> posteo.net> writes:
>
>> Why would this be necessary?  I am not saying that `cl-loop' should be
>> converted into a proper keyword-macro, just that each `:foo' in a
>> loop-keyword position ought to be interpreted as `foo'.
>
> You said that cl-loop would be more comfortable if "it doesn't have to
> feel like you are using a whole new language, but instead these are
> just keyword arguments to an unusual function call".
>
> I'm pointing out that this is wrong -- they are not keyword arguments,
> and if you think that they are, you're going to be using it wrong.
>
> In other words, it is a whole new language, not just keyword arguments.

I phrased that clumsily -- while it is a new language, it doesn't always
have to feel like one.  E.g. the repeat-collect example I gave before.
If you *can* use keywords, you *can* make some cl-loop invocations
appear to be a macro or a function call with keyword-arguments.

But of course this wouldn't be the case, as the macro should stay
backwards compatible.




This bug report was last modified 2 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.