From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Code for cond* Date: Fri, 26 Jan 2024 22:35:32 -0500 Message-ID: References: <877ck7me2z.fsf@dataswamp.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17687"; mail-complaints-to="usenet@ciao.gmane.io" Cc: incal@dataswamp.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 27 04:36:20 2024 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 1rTZUS-0004Q9-41 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jan 2024 04:36:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTZTk-0007Ac-M1; Fri, 26 Jan 2024 22:35:36 -0500 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 1rTZTi-0007AO-TH for emacs-devel@gnu.org; Fri, 26 Jan 2024 22:35:35 -0500 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 1rTZTh-0004TK-9H; Fri, 26 Jan 2024 22:35:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=iWiUlor/yDadqQbZ+bPtc3+/+I3E7sRsh67QwM7LObc=; b=glOCvObBsqYH SWHuHJEH/qpBmvIckcq5tK1c5jGVsZ+y83LCm0iZoeQAP+UAX6xEsBxqCm11IFsvQMusXLTFfjy6N ZeTBMDTBeVIZ/PhB776nQ2u1kupF2xmyLpGD9iW7XCHiYccmXJAX4sTLLVK6J9KMwrotMS/XOUUhg 6A/cF7iw/FbhaHgjMOh9OIBgh0EOjeL8/30LCRBikLYpaBckzLIbINx68dNrt2zXE+MYbsgN3lmU+ RnT8M2EHzTYBehAd9yNdAs3NYQFO4mkMVte0f0gqsIudgISEUoirj1dI9oc4cOFz+NgT3gBciRoFm jNiqCKSC95B9dO7x/5SyKA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rTZTg-0007GN-V7; Fri, 26 Jan 2024 22:35:32 -0500 In-Reply-To: (message from Alan Mackenzie on Wed, 24 Jan 2024 19:12:03 +0000) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315453 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > , in the generated code, the form (let* ,(cdr condition) ...) sometimes > gets evaluated twice. Surely this is a Bad Thing. Or am I missing > something? Yes, that was a bug. Thanks. > In cond*-match, you use gensyms. I've not spent enough time > understanding the code, but would it be possible, somehow, to avoid > these? I don't see a way to avoid using generated symbols. (pcase uses them too.) There could be other ways to generate their names, but what specific way would be bbetter? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)