From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71120: 29.3; buglet in cl-loop Date: Thu, 30 May 2024 11:41:50 -0400 Message-ID: References: <23fd70f8-6e01-45d7-b9f9-d81d53c95ffd@lmf.cnrs.fr> <87cyp4wdj7.fsf@posteo.net> <4ED83CF1-C697-46DF-99D2-56432A1E3B44@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71120@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Philip Kaludercic , Philippe Schnoebelen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 30 17:43:20 2024 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 1sChvz-0000Es-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 May 2024 17:43:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sChvZ-0001dR-SU; Thu, 30 May 2024 11:42:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sChvY-0001d4-K0 for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 11:42:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sChvY-0003FS-98 for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 11:42:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sChvi-0003sa-G6 for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2024 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71120 X-GNU-PR-Package: emacs Original-Received: via spool by 71120-submit@debbugs.gnu.org id=B71120.171708373214784 (code B ref 71120); Thu, 30 May 2024 15:43:02 +0000 Original-Received: (at 71120) by debbugs.gnu.org; 30 May 2024 15:42:12 +0000 Original-Received: from localhost ([127.0.0.1]:43422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sChut-0003qN-K9 for submit@debbugs.gnu.org; Thu, 30 May 2024 11:42:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sChur-0003ps-LZ for 71120@debbugs.gnu.org; Thu, 30 May 2024 11:42:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sChuZ-00033g-35; Thu, 30 May 2024 11:41:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=uDQVY24ElieUknyKVpd9KCXgUcze2zWiUdoNbf6dHRA=; b=GC7A9XtN+AkPkaLRDP74 ghKsQLNkLtNNFWsls93Z4mnCl6S6ekTQTTbQ8puaQenrxIpdTbBkX/JC7AwQZqnuNjEz+uQncJyuG HKV1OJq1xhfPbz006vpPZgG5sWEbb6TKv9GEUa+SACnEkDQLSWAKU7GpFCerI3H8sWHnPz2R9GfCi 6dt7w9pu4QU1Ri790I7pXUpbLhGH2PJ1S1WmcPZb7MLv1Zs8HuFinYTJyVrFeNEta0F1jNCcMSe3M CoBwMk/ZBYXtFzxrHwYvgeIX63BGe4yzG0mlCMhb41FSxlxrc+rx+d/hYXt9WtWtI5/MS3GrH6d3D JgaeceJPWoP8wA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sChuY-0006xJ-Ga; Thu, 30 May 2024 11:41:50 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 30 May 2024 10:51:19 -0400") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286231 Archived-At: Stefan Monnier writes: >>>> (cl-loop for i from 1 to 100 collect (random 6)) > [...] >>>> (cl-loop for _i from 1 to 100 collect (random 6)) >>> Thus I don't think there's anything we really need to do here, do you? >> I, for one, think the nicest option is the one SBCL (and I guess other >> CL implementations) are using, that is to have 'i' 'ignorable', the >> problem is that we don't support this at language level. > > I don't quite see how "ignorable" comes into play here. > > In the first case above, the var is "not used", has a "normal" > name, and we get no warning. Does SBCL do the same or does it emit > a warning? It does not emit a warning > In the second case, the var is "not used", has an "I'm not used" name, > and we do get a warning. Does SBCL even support "I'm not used" names? It does not. In Elisp a variable can be either normal or _* (not used). In CL a variable other than normal can be 'ignore' which correspond to our _* or 'ignorable'. This last AFAIU stands for might or might not be used but don't emit warnings. It's no big deal but I think 'ignorable' is useful for macros expanding code with variables that might or not be used by the user like in this. Andrea