From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: cond* vs pcase Date: Tue, 06 Feb 2024 14:04:04 -0500 Message-ID: References: <87il32iwmm.fsf@posteo.net> <87o7cttu4l.fsf@posteo.net> <87o7cts9nc.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 06 20:04:50 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 1rXQkS-0000PK-Qk for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Feb 2024 20:04:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXQjl-00070P-DJ; Tue, 06 Feb 2024 14:04: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 1rXQjk-00070A-Q1 for emacs-devel@gnu.org; Tue, 06 Feb 2024 14:04:04 -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 1rXQjk-0008Sh-FC; Tue, 06 Feb 2024 14:04:04 -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=AOkiOvQSz804rvj37fbhyIx7EbQHkukSXhkCjcJYNAY=; b=knQHLBvWGfuL MTP0wwdVBDzHX0u96Jm7TOzzfyzvDqFRBGwsx1tGatFnuiU/EjsUowa/Zij6Okn/vjPeMZeTP6Y6Q NXeTIHAMKTWrb2tSV2pwaSnjLVPuxk0azMBlvjKHrOFbqrznwTTEjH9AxDjtBUIu5ZgvQlg6vhI7A Fyo2HAtqQgy2xm2ILu93pAYZJek7UIF/Vgru7liuhcBEy+WcpoYStRxKzTGTwYhSu1A8d0yljA1a7 lveTOOujXw5H8wEU3AsnA+AGvKYrhaGCw9sHYIFOD8NVcN81pWOEwjWr6LMdoQbRsMLBreuZ5UX8i Mng7BpRuCsviuHwozy52rw==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rXQjk-0000D0-6y; Tue, 06 Feb 2024 14:04:04 -0500 In-Reply-To: <87o7cts9nc.fsf@posteo.net> (message from Philip Kaludercic on Tue, 06 Feb 2024 18:57:43 +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:315944 Archived-At: > > Because your not doing pattern matching, you're comparing against a > > set of strings/symbols/numbers/.... > > Simply because pattern matching is a more powerful generalisation, > capable of expressing case-distinction; in the end it compiles down to > almost the same code anyway. > > Are you suggesting that COND/CASE/... and other "trivial" matching > constructs should be replaced with PCASE/COND*? No, just that using pcase in these cases isn't wrong. Then we disagree on a fundamental level. This is just like like using EQUAL when comparing stricly strings is not the right tool for the job.