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, 02 Feb 2024 22:32:01 -0500 Message-ID: References: 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="40294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 03 04:33:09 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 1rW6mD-000AGq-7W for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Feb 2024 04:33:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rW6lB-0002QC-1o; Fri, 02 Feb 2024 22:32:05 -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 1rW6l9-0002Pk-BC for emacs-devel@gnu.org; Fri, 02 Feb 2024 22:32:03 -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 1rW6l9-0004uG-39; Fri, 02 Feb 2024 22:32:03 -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=u+niCPAeFjpSzomUbWJCQNO5pwtTTvKit9LOBrBKcko=; b=BpyssYGIdS0Y lT4SIbBJDvWEepMagSg/OjPy1lydsajO27ctqdrg2AiWBGZuYCkdkoeBk+pF22FT7hZzO1bwkyYfV Vkot8+jz/qYxqlk8qGAYETGRGNPLXH+6oXbz2/9VDa2RLuAuchl9XK/b3QKcll/V917VkezESyuHb WqKxck1Z6RyCelzWAVU8pGt3kLHRhqIqwDPG34iV/viztDuaEuCJ3CA/mjE9TBxMUDWNjET1+E2TY R5ZcNh9XoiXc77kpUPPZe9B00+zHS2IsaNENKfbE3RMtSnkCCN1FvNfn0HkkyGjjvB0jDT9vD6tZN bcbUmuwpna7EcewwGW1SJw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rW6l7-00021X-Qi; Fri, 02 Feb 2024 22:32:02 -0500 In-Reply-To: (message from Stefan Monnier on Wed, 31 Jan 2024 08:20:03 -0500) 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:315784 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. ]]] > As I said: in Pcase I moved some of the "built-in" patterns, such as the > backquote, out of the core (using `pcase-defmacro` to define them > instead), as a way to make sure that `pcase-defmacro` is indeed > flexible enough. You're suggesting that I do this by exploring, but that's the hard way. Harder than actually necessary -- since the real intention of a macro facility is for defining other kinds of pattern _given the ones that will be provided_. It's comparable to looking for axioms for mathematics (or even just plane geometry) -- interesting, but there was no need for the rest of mathematics to wait for this to work. I would rather install it the way it is. > Tho better would be to just give up on your pattern language and (re)use > Pcase's machinery instead. I wouldn't want to use it without making it include the improvements I've designed into cond*, and I expect that `pcase-defmacro' is not capable of implementing constrained variables or `cdr-ignore'. That would require changing the pcase pattern code. I've explained why it is not feasible for me to work on those changes, and why I expect that code won't work in cond* at all without substantial additional changes. I have no feasible choice except to use the code I have written. If you tell me the name of the function in pcase which is the entry point for processing a pattern, with that starting point I might be able to understand some of that code. I doubt it will change the situation, but I will take a look. -- 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)