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 12:27:33 -0500 Message-ID: References: <87il32iwmm.fsf@posteo.net> <87o7cttu4l.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2602"; 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 18:27:53 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 1rXPEf-0000Rr-7e for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Feb 2024 18:27:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXPEQ-0001w8-9f; Tue, 06 Feb 2024 12:27:38 -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 1rXPEN-0001vC-Ox for emacs-devel@gnu.org; Tue, 06 Feb 2024 12:27:36 -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 1rXPEM-0006Zf-CB; Tue, 06 Feb 2024 12:27:35 -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=qg2WxqM5c0tHNLcR8vfPKKStfgPfuIFpfruOEEM8iKQ=; b=knwM8Ej7x9t2 1rnqKeU6l4BV5AycwEIWkerJhXhAerqSNT5WlZvaLfBjSEiNuoVLQ9JK6aBkCbQuHN72hH9nC5Xkb h59EKUYqQK2ZlDq2zzgE++9VMWfwuIO2qBE/1XUHqsnAK1hj8Yz2CGytgVg6IW1mApvWYT/vmQwed YS0Lqun8l5zZiRmQRNaRBdOTviQN/8kYIyW6A7AIacJqKOB8wyF03Q1muP+bi395UlkKsrBER825k Vi8SL8PftnXLIg4y5krFLLXztwe6XKtl0WYmT1gxO4teNlGdDvFUYwC2S4TAmP9fKWWCCu+RqWGIw frnJaZTr+iGGV9QvqzkFcA==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rXPEL-0000nD-Iw; Tue, 06 Feb 2024 12:27:34 -0500 In-Reply-To: <87o7cttu4l.fsf@posteo.net> (message from Philip Kaludercic on Tue, 06 Feb 2024 16:50:02 +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:315937 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*?