From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#57907: 29.0.50; Using keywords with cl-loop Date: Sun, 18 Sep 2022 12:46:18 +0000 Message-ID: <874jx46eat.fsf@posteo.net> References: <87tu54dh3t.fsf@posteo.net> <87wna027sr.fsf@gnus.org> <87leqgdfz1.fsf@posteo.net> <87sfko2702.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8514"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57907@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 14:47:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZthm-000229-84 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 14:47:26 +0200 Original-Received: from localhost ([::1]:44590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZthl-00056z-5M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 08:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZthO-000568-TV for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 08:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZthO-0002nV-8T for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 08:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZthO-0000NL-2x for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 12:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57907 X-GNU-PR-Package: emacs Original-Received: via spool by 57907-submit@debbugs.gnu.org id=B57907.16635051921400 (code B ref 57907); Sun, 18 Sep 2022 12:47:02 +0000 Original-Received: (at 57907) by debbugs.gnu.org; 18 Sep 2022 12:46:32 +0000 Original-Received: from localhost ([127.0.0.1]:48288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZtgt-0000MW-TW for submit@debbugs.gnu.org; Sun, 18 Sep 2022 08:46:32 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:50913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZtgs-0000MC-4B for 57907@debbugs.gnu.org; Sun, 18 Sep 2022 08:46:31 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E1486240101 for <57907@debbugs.gnu.org>; Sun, 18 Sep 2022 14:46:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663505183; bh=89rh7TN4IqGA6WHEqQsK0AUw7464NV7IVg4DBKGDljI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=cKJuWjWbn48smug9aexx3HRtjf9mWI93haRmI0205w8Gj+mnuvJzUL2xg2QWInooW b9HXWt3o8bNxEf9BaD84T1xygE4oZ0M9f2X1wtlYs/dqDDOIncAXVhOodahDrwRpX7 Dj6ywGKXJUQ14uPegSIPTbt9J5+U1A8TjL1XIgh1bmrvz/45sfF307z5GB8xZXWa46 OVs6Y7B+Qk/U2UCaTqGFkbqfSpPL2cHecUVJr4bZJrKv8NFH/uL4PgIKujKxar2jaH kYr97RplEG9mgbelenntOsG3fgyqGIDfRz7kGRkjCNThsy1t39FF7GgXaC+H1DMucn 2uHel2TtjQVcQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MVncD3Flmz6tmG; Sun, 18 Sep 2022 14:46:19 +0200 (CEST) In-Reply-To: <87sfko2702.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 18 Sep 2022 14:37:33 +0200") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242984 Archived-At: Lars Ingebrigtsen writes: > Philip Kaludercic 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.