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: Fri, 01 Dec 2023 22:21:12 -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> <87zfza2aq2.fsf@web.de> <7nmsv9zq6u.fsf@ecube.ecubist.org> <7nv89x5tsi.fsf@ecube.ecubist.org> <87o7focuf5.fsf@web.de> 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="37372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 02 04:21:33 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 1r9GZQ-0009X4-EJ for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Dec 2023 04:21:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9GZC-0000FF-BT; Fri, 01 Dec 2023 22:21:18 -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 1r9GZ9-0000AI-Ny for emacs-devel@gnu.org; Fri, 01 Dec 2023 22:21: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 1r9GZ7-0008RN-MA; Fri, 01 Dec 2023 22:21:15 -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=OqS9/aYFBmVIJRTOsG3DxNhPCDWpBSLjs2FELWV3/Lo=; b=CKFM4vy9/TB7 T13Z00IZktqvbg8/N/VqIPCv7z5HKxQUXSXUppKgUa0GMi1riBihyp1XzwMUBVQOmUlCR3MFAi+I0 E6nQfoEY9QB1VBJQex0OslkR2B3FngErY/zPRozi74G0lPIn43j/eJVwH8EuxY9IPMfVQHgNvm8gB VWOUU4F/jWoopgQEwsnkkxrvNkahNrWsm13RjdAwRcL2tOvqk+zPo8458zhmTeqidWUT4MvSn0jRk iDREfaj/9EGtlEGyvgPeYIy8yZay35ZRuptALUvDRH2sX5L0wdtzBn9TUjXlE+9MTV/wWbwW1lvcN qoruxu9os4k9uOkl/A/dlg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r9GZ6-0000Qs-NE; Fri, 01 Dec 2023 22:21:12 -0500 In-Reply-To: (message from Dmitry Gutov on Fri, 1 Dec 2023 02:18:00 +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:313456 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. ]]] > certain structure, and then in the matcher, to deconstruct the structure > and create a set of variable bindings. I think I posted the translations I came up with. But I can't recall after this long whether there was any additional repetition. > This repetition both adds verbosity and increases the chance to make a > mistake in one of the two places. If there was any additional repetition, it was a few tokens -- nothing significant. The complexity of pcase's terse domain specific language is a significant obstacle. > This repetition both adds verbosity and increases the chance to make a > mistake in one of the two places. But once you eliminate it, I believe > the result has to look like a more verbose pcase. My current version of cond* has only a tiny fraction of the complexity of pcase. -- 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)