From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#73853: 31.0.50; and-let* is useless Date: Mon, 21 Oct 2024 20:09:04 +0800 Message-ID: <87y12hirof.fsf@melete.silentflame.com> References: <87a5f2xir8.fsf@web.de> <87r08akk75.fsf@gmail.com> <878quh6dg7.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34677"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , 73853@debbugs.gnu.org, monnier@iro.umontreal.ca To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 14:10:01 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 1t2rEX-0008mr-Ab for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 14:10:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2rED-0001yF-RB; Mon, 21 Oct 2024 08:09:41 -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 1t2rE8-0001xm-Op for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 08:09:37 -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 1t2rE8-0005aO-Fo for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 08:09:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=PFLYR27oTClcQkCiBJe4tfljbNbdg/4RTAFkL2wwPkg=; b=ZslIk9+JEJKSyUp4+00o9cJ8AnxCW8W5UHCkd+rLIDvNVlfyFY8vTnIW2k3HGxdIWrVTI+O07jTRvMOLCv+DH1ObHhRgGGoi57GsHBiVSaZTaZMRwzyPJvLyruIQs3XqORIjqI92fketuxvriVeA14TCAVsi6MxaU0JyJXB0cW8TA1aW14staejn8M9fCi4V3cc5VUdua/BoM//Ae0Kcf0ZDHCJOrslbM+DIucgpCZs1iRUAqnYPgzfeDXo8dDu4QqJu+ZZtAn94+2mHrhTflckLOKIn0MD+xurNKefRh0IvdsARTwT7iFg8ePhKcaoiq/W6/Ryu7BS/vSMtZD4Ykg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2rEY-0005wu-6i for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73853 X-GNU-PR-Package: emacs Original-Received: via spool by 73853-submit@debbugs.gnu.org id=B73853.172951258322829 (code B ref 73853); Mon, 21 Oct 2024 12:10:02 +0000 Original-Received: (at 73853) by debbugs.gnu.org; 21 Oct 2024 12:09:43 +0000 Original-Received: from localhost ([127.0.0.1]:50492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2rEF-0005w8-HL for submit@debbugs.gnu.org; Mon, 21 Oct 2024 08:09:43 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:51642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2rED-0005vt-4L for 73853@debbugs.gnu.org; Mon, 21 Oct 2024 08:09:42 -0400 DKIM-Signature: a=rsa-sha256; b=RtTmRDpqqGL6QuNpdYsWHH3EjVpWQjmSoiLfCZIBRbG8Jghr0/ViEVLI7NfRNSkV4sNCVNvPQ0Ki+4pSHCbxYHDe1+zlBWrjaGbugqxoDsetl0ceXibJSaXTmten1aNAX5WXToRSZX8X1JIvuGlJhNc4xnKxHMaEMZfZmBgDn/eqCFX7kTxWuy2zo2w8Aei/geS9s5nBW/yU0+65hKpXMZgb9dik6dAa3BqOjZ2ETtVayaBvJlaJXA5y3LkUrVwLLKvGi9sYCqcuLDHhWWYmGgz47z6u4JLiRKm7LsdY+563EBcAXyq5XZnYih34q+AGhkcQo1Z1YikuzepxlV/jxQ==; s=purelymail1; d=spwhitton.name; v=1; bh=qnQfmtQJA5OWAGxUFEvELW98eyCx4QMEgIaptCcXOv8=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=cgbJWiGkNjf0n4hkim2cjPnQlmsN+dI2ag4pg+w5QabxFE5q6jykXtEuMDjjlwBZqNwXNQ7ZzNIUqgqFIITVO+1Lzs76kSv4kWOQ/hLRrvesPpYSF/Gs7fg+Vv7ZM8Q25kJ5MBRSjw4d/IcsbZOij1u0iJ6/jeZRIOSFw6tIWT+QQ8DyOt9xvrzRRWPrPSRg5DplaoxveISnGOsKBqEf0gjynOGMf2P4f87gk6j9X2bjWLq2wjpxfKTn+TE5WvYJ0A/lnLOcOGwhx2UbPNMAM2pjkccgU+UtiVxGw8ZfUwdqxHGjAbPBEUMDl9jwt07XeLrdqaH2XBE0zLVPqMHpGw==; s=purelymail1; d=purelymail.com; v=1; bh=qnQfmtQJA5OWAGxUFEvELW98eyCx4QMEgIaptCcXOv8=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 73853@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 414641136; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 21 Oct 2024 12:09:08 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 8E4217E980D; Mon, 21 Oct 2024 20:09:04 +0800 (CST) In-Reply-To: <878quh6dg7.fsf@web.de> (Michael Heerdegen via's message of "Mon, 21 Oct 2024 10:57:12 +0200") 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:294047 Archived-At: Hello, On Mon 21 Oct 2024 at 10:57am +02, Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > Augusto Stoffel writes: > >> I always type `if-let' because it looks cleaner and saves one indentation >> column (which are purely cosmetic reasons), but also I think it would be >> weird to have a something* when there's no accompanying something. > > Good point, we should decide which names to use. Personally i prefer > the names ending with star, because bindings are not parallel as in > `let'. But we also already spoke about this. Dunno which names are > more popular, it's a matter of taste. I prefer if-let* for this reason too. Also: - it informs a reader that there is no way they are going to see the unusual single binding syntax. - Common Lisp's ubiquitous Alexandria library of basic utilities has an if-let which has the unusual single binding syntax. In fact, that is probably where our if-let came from. So if we are moving away from that, it makes sense to use a different name for the thing we invented -- if-let*. -- Sean Whitton