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: Instead of pcase Date: Thu, 23 Nov 2023 22:34:13 -0500 Message-ID: References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <763f067b-4ca9-1eba-9f3c-424c38589e9c@gutov.dev> 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="33297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 24 04:35:02 2023 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 1r6My5-0008MW-Mb for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Nov 2023 04:35:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6MxN-0003G5-Ff; Thu, 23 Nov 2023 22:34:17 -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 1r6MxM-0003Fs-2P for emacs-devel@gnu.org; Thu, 23 Nov 2023 22:34:16 -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 1r6MxJ-0001oc-Uo; Thu, 23 Nov 2023 22:34:13 -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=LbfK0PA8HpfRstN9Kg9RhZdb1pVjWcsldWNudtxkUns=; b=Y2JnZy5lhG2O Bv3KAi55ZY7PwtCz33WeFy46U9Cl+oVuGewgggZdU8Grmktafnev6miISr+t8Wulzc6EWQsnEqYYi XkcT7usEy9MiNcOH6GiXRFy0fUBL7OavY6/vKMfUgE+Oy42xCAfNJ/Lc6z/lw+yCBH9/03OG1KoQP y9PMVTdtIDsLkKtqpQTiJ1rfFVm0GDwDLjg0uV92FFw5WVJH0HBaLU6p/PyT9KMXUFwg3b1nvFmYt enPU6RKTmeeE9yOUfp7zbgnWZPp5FL1FE6ZVuYsEYcKW1A4M+G+JNgj1UsJQvg2pPCStL+RAWjSg6 wG4Q9sWM8jp4ZIgFwO/4cg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r6MxJ-0000vw-Fg; Thu, 23 Nov 2023 22:34:13 -0500 In-Reply-To: (message from Dmitry Gutov on Tue, 21 Nov 2023 13:11:05 +0200) 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:313165 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. ]]] > >> > (`(,hookfun . (,start ,end ,collection . ,plist)) > > I was not sure which part of the line that rule applies to. > > > >> > (`(,hookfun ,start ,end ,collection . ,plist) > > Would that be equiva;ent? I as a reader, trying to understand what that pcase construct did, did not know they would be equivalent. So this specific piece of cleverness specifically interfered with my understanding that example and therefore with my trying to understand pcase. > The particular shape is chosen to follow how the data matched against > was constructed in completion--capf-wrapper: (cons fun res). So it was > for the ease of comprehension, actually. I believe the assertion that this was intended to achieve that result. Whether it did achieve that, for some users, I don't know. But I can testify that, for this reader, it had the opposite effect. -- 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)