From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Code for cond* Date: Wed, 24 Jan 2024 17:25:55 +0100 Message-ID: <87o7da7l64.fsf@ledu-giraud.fr> References: Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5226"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Richard Stallman , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 24 17:26:59 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 1rSg5Z-00012R-6e for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jan 2024 17:26:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSg4l-0005A3-5k; Wed, 24 Jan 2024 11:26:07 -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 1rSg4g-00058q-3R for emacs-devel@gnu.org; Wed, 24 Jan 2024 11:26:02 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSg4e-0000nV-A1; Wed, 24 Jan 2024 11:26:01 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=UqajxwXQ aYh6n44KdiWrph+P3wb//sDSV2AvOqeCJb0=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=tPlXlPGUVaqgZkcymq+IhIffWd6Fin SZPOyvSsoof7jBNTHhpuRfOApywZeZbUXnzjnOaZCL8xtIG7BEUIRtAQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=UqajxwXQaYh6n44K diWrph+P3wb//sDSV2AvOqeCJb0=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=N2IdcwqT2gtRTRESo403EOeyYRHsQXNATef1Dn 00OOe7+So3rDQ+vaJucT/uire+m9B8WCvb13MFaOUzF31Ww0WDcFNzc8oKg/WDoQ4phIka sPSpeOhW0X2bQt/x3EVM7R15qiN56HkzFOG0H0V/exzuIvT4+XEcvF6Puji79qt/w9CqFQ YuIWGA2nn23EYx2A9tD9ND84ZazoPMLcBAVsyRQM8PVzkK07dYFfYeQF1lrmJnweLjqHvN 56DH490/tIrFY7VUNrohhMLskz3paFyJMNwlrlmaAe/N4ZffIJXQiupPXsv4YDivb/MOH1 rLbkJCWvMLPdmWh0g+rV+k4A== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id d18210c8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 24 Jan 2024 17:25:56 +0100 (CET) In-Reply-To: (Alan Mackenzie's message of "Wed, 24 Jan 2024 12:39:54 +0000") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315322 Archived-At: Alan Mackenzie writes: > Hello, Richard. > > On Wed, Jan 17, 2024 at 22:37:47 -0500, Richard Stallman wrote: >> [[[ 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. ]]] > >> Here is the first draft of cond*. I have tested some cases >> but I ask others to help in testing it more thoroughly. > >> I invite constructive comments, bug reports, patches, >> and suggestions. > > [ .... ] > > One thing I noticed was that the implementation makes no use of macros, > except for a trivial macro which "renames" cond* itself. > > This is in contrase to pcase.el, which uses macros extensively, > requiring lisp/emacs-lisp/macroexp.el to work. In its turn macroexp.el > uses pcase. This leads to an unlovely artifice at bootstrap time. > > The macro in cond* can be expanded by Fmacroexpand in src/eval.c. Thus, > at bootstrap, condstar.el could simply be loaded before macroexpand.el. > > This is a Good Thing, and I'm sure it's not an accident. Please keep > this feature as cond* get amended and further developed. This argument and the Po's one about the relatively small size of condstar seem like good ones to me to have this option into Emacs. But I also feel for the maintenance argument of Stefan K. (just my two cents here of course) -- Manuel Giraud