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.devel Subject: Re: [PATCH] Adding with-gensyms and once-only to subr-x Date: Mon, 11 Apr 2022 11:41:13 -0700 Message-ID: <87sfqja2eu.fsf@melete.silentflame.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 20:43:01 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ndz07-0004kC-JK for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 20:43:01 +0200 Original-Received: from localhost ([::1]:33638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndz06-0006QX-As for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 14:42:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndyyU-0005bJ-TF for emacs-devel@gnu.org; Mon, 11 Apr 2022 14:41:18 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndyyS-0004Yl-7d for emacs-devel@gnu.org; Mon, 11 Apr 2022 14:41:17 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 00CE75C002F; Mon, 11 Apr 2022 14:41:15 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Apr 2022 14:41:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1649702474; x=1649788874; bh=G5BRTEzpe8 sxhUwxBD9ZlInk+CRswceGEuLe/BDq9zw=; b=L/Ef3V2K5MuEPvwzNIZrsKEGDp kEMPsuf4JS1St59Ty0pSX6mEmRoS+JZSz3Vol2htzMdz+FScOV43RheCTej1FFHZ A2nCr03VewHoWKqZkui/+LhhSowRr4U/sif6YeTrDG67bZ9b588DjjTHL2ZVkFCC NM3kN3Mq5qDnHY+/c+xp1cTzbw1wj/Znry9XnRjCYmtR5uPTiqT6MSIyU8HpeF0l F7+gPr3bn0DVfHUkv7W46jH2pWbxUTDtBPHCdUnfCIDPF9pCxhW1ckuTon3+MGes HxcOZzLqao+ikMFcXffu0w0gwAVJScwmV6zWkAIVkCFyQTV7A/L6rbYfTFOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1649702474; x=1649788874; bh=G 5BRTEzpe8sxhUwxBD9ZlInk+CRswceGEuLe/BDq9zw=; b=ODJZLkM4m595rhgRP MX94lj7/kEal0dCDfUVKUg01oii91LNL0cIb90ykHdhDPH3EiGpV/+K+7zML+xkQ gD4EwIqi29sUhUFF1Sw+qYlBYRG8+2hRa1CKF7Ru/vipKsMpG089wTk6p0WkpCEq KyxnVaSmDGS9VfY+ezx/tqBKOOyYW5mFO+Zi6i15E6IvAX97OJPWiBnxYN6MII+5 3OLr4GuHeOSEA4y7dJe5/NfhlItqdFzjfOty662A3k7DijM3G+JxdIrmOk6SOTtO 71l7MhaLVvBoWEoqugMsWxChMqoIeKQYERrNKmmnow8uFp39Df0WbOv00PBIWMUO NdMzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekiedguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujggffffkgggtsehttddttddtredtnecuhfhrohhmpefuvggrnhcu hghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqne cuggftrfgrthhtvghrnhepgfejkeeigfdtgfduiefffeetveffteefleeuvdeuvdeulefg veeikefhtdetjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Apr 2022 14:41:14 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 072687E3EAC; Mon, 11 Apr 2022 11:41:14 -0700 (MST) In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=spwhitton@spwhitton.name; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288239 Archived-At: Hello, On Mon 11 Apr 2022 at 01:26PM -04, Stefan Monnier wrote: > How 'bout making `macroexp-let2*` accept the shorter form as in the > patch below? Nice. Good with me. (I thought about extending macroexp-let2* but didn't think about the idea of making the first argument optional.) > I'm not in love with the name `macroexp-let2*` but I find the name > `once-only` to lack context. So we could consider renaming, but I'd > favor making it live in `macroexp.el` (and come with a `macroexp-` > prefix). It could be called `macroexp-once-only` or > `macroexp-eval-now`, or we could go crazy with names like > `macroexp-copyableize`. How about I add an alias cl-once-only, maybe which doesn't accept the TEST argument at all? It can go in cl-macs.el. 'once-only' is the very well-established CL name for this macro, referenced in all of "Practical Common Lisp", "Paradigms of AI Programming", "Let Over Lambda" and I think "On Lisp" too. Speaking as someone who has written more CL than Elisp, I would find it helpful to have it under that name, and I should think others would too. -- Sean Whitton