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" <ams@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: [External] : Re: cond* vs pcase
Date: Wed, 07 Feb 2024 13:22:03 -0500
Message-ID: <E1rXmYd-0004wN-BU@fencepost.gnu.org>
References: <SJ0PR10MB5488FBA45DA4AC634791B577F3462@SJ0PR10MB5488.namprd10.prod.outlook.com>
 <822c332c-1a85-4454-8978-0b1491981058@alphapapa.net>
 <SJ0PR10MB5488EDAD5C20C8BA44A4A6B1F3462@SJ0PR10MB5488.namprd10.prod.outlook.com>
 <DU2PR02MB10109826F4143098CB12BBA1D96452@DU2PR02MB10109.eurprd02.prod.outlook.com>
 <874jek5r0o.fsf@yahoo.com> 
 <DU2PR02MB10109920F3AFCFE0CF42BCFF996452@DU2PR02MB10109.eurprd02.prod.outlook.com>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="10694"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: luangruo@yahoo.com, drew.adams@oracle.com, adam@alphapapa.net,
 emacs-devel@gnu.org, philipk@posteo.net
To: Arthur Miller <arthur.miller@live.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 19:24:05 2024
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1rXmaZ-0002WB-6F
	for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 19:24:03 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1rXmYh-0007IW-4D; Wed, 07 Feb 2024 13:22:07 -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 <ams@gnu.org>) id 1rXmYe-00075j-Sz
 for emacs-devel@gnu.org; Wed, 07 Feb 2024 13:22: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 <ams@gnu.org>)
 id 1rXmYe-0008Pw-3q; Wed, 07 Feb 2024 13:22: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=PltYOVdSy0+Pxi9YMC3is3zlc1Z1PsHx8va6JQHI0dY=; b=WxhAjcm4XAZr
 zGPzRRT9UVJEUA2EZLOdxp901rj96UT+vZK1URi5QG2FULbvVlczI23lfqxdmNr5e05d9py352g2r
 AIxMYuCTkhzb/Wr2+HXJP+yp6woeyMW1UjcYZ0tXGHomrYJPAAht1kfm8FGoG5Q2njqtXc67FRHAQ
 v9E8MDgPRum782z7ZOunvSrBYzOf5Nzbb1de1y4bgvYboS1QRpaZd571YzSB2CgITuDbPbUvZNJHe
 RNXTXzhloC0iYRpRhtZZv+haCSPLz88BzhTm3V4hqWq1fxqNWPxieSTST23xRfeeFRv+zxXScqaea
 5a4T3vztqjVNkVsziicD5A==;
Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <ams@gnu.org>)
 id 1rXmYd-0004wN-BU; Wed, 07 Feb 2024 13:22:03 -0500
In-Reply-To: <DU2PR02MB10109920F3AFCFE0CF42BCFF996452@DU2PR02MB10109.eurprd02.prod.outlook.com>
 (message from Arthur Miller on Wed, 07 Feb 2024 19:00:10 +0100)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=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:315987
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/315987>


   Po Lu <luangruo@yahoo.com> writes:

   > Arthur Miller <arthur.miller@live.com> writes:
   >
   >> Drew Adams <drew.adams@oracle.com> writes:
   >>
   >>>>    (pcase foo
   >>>>      ('bar (do-some-bar-stuff))
   >>>>      ('baz (do-some-baz-fluff)))
   >>>> 
   >>>> is not more awful or wonderful than:
   >>>> 
   >>>>    (cl-case foo
   >>>>      (bar (do-some-bar-stuff))
   >>>>      (baz (do-some-baz-fluff)))
   >
   > Sorry to interject, but this really suggests that `cl-case' should
   > become, simply, `case', in subr.el this time around...

That would be really nice (and maybe ecase, ccase as someone else
noted).

   Pcase in that case, thanks.

pcase does not convey the same intent as either case or ecase.  case
and ecase also have history, and are more familiar to people
programming Lisp (they are quite old, like many constructs -- so
suggestions like modifying cond outright should be disregarded point
blank).