From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams <drew.adams@oracle.com> Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: cond* vs pcase Date: Tue, 6 Feb 2024 16:35:19 +0000 Message-ID: <SJ0PR10MB548887DA40CCD4695CE3E4A5F3462@SJ0PR10MB5488.namprd10.prod.outlook.com> References: <DU2PR02MB10109F1CBA5F7A8D78A597A5D96472@DU2PR02MB10109.eurprd02.prod.outlook.com> <E1rX1UK-0005Ip-Ff@fencepost.gnu.org> <87il32iwmm.fsf@posteo.net> <E1rXO89-0003Ll-3B@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10260"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "arthur.miller@live.com" <arthur.miller@live.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org> To: "Alfred M. Szmidt" <ams@gnu.org>, Philip Kaludercic <philipk@posteo.net> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 06 17:36:16 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 1rXOQh-0002YD-RO for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Feb 2024 17:36:16 +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 1rXOPz-0006ke-LQ; Tue, 06 Feb 2024 11:35:31 -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 <drew.adams@oracle.com>) id 1rXOPx-0006k4-NS for emacs-devel@gnu.org; Tue, 06 Feb 2024 11:35:29 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <drew.adams@oracle.com>) id 1rXOPv-000329-Gu; Tue, 06 Feb 2024 11:35:29 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 416GFSIi031166; Tue, 6 Feb 2024 16:35:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=XdFWNuTMeiGr9Rlk3Z62aa/D5W/TtMlXM12f/WpgkhE=; b=f6YXrb/5UV/GHtNZXrNQxDVAifBHu+L0GiEkKVoDVw4+semBd38mLgDWdPIgiRtPJvq/ xDKgpP+xuSP/3b9dUL/Gn58s/E7UJ7b5JdtHTgpB7gDE2HTeagPmzPbGFDkglXCtY1Ld OT3xUpqOuDyOWi7P0OejiHu9n6MqXXziJEuRXMuSvE2B6Zy54tqEmziP9daw4rgNWgAU SLo0dGGftR1Bd7BI/E97y15zm3tDZHsKpFkte44/E+uz9PNqkYuAPNS19XL5RJ/ksX9/ /n8D/Zhmku20wT9DUDYAcHSqqwHrH93JYBkt59zhCI3xdkD/nakCTDR1CgYqZPPnpVTI sw== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3w1dcbf7n6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Feb 2024 16:35:22 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 416FVDMg038420; Tue, 6 Feb 2024 16:35:22 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3w1bx7jktp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Feb 2024 16:35:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+4jt8eZYQ4DeACDIpAEeD5HhZy5U/V+UDc7dUDABq9ulSk2qHMDX2o9gPvQuUeNoBkOQvD89hS+B6UwuZjLwQFum56CNCia6GAuGrhU7HAHYjmIfwTWbDym0Hcd9uDl0DCEfD4rX4ys8A+pYNI3PouisZ/dYEe8DY3NZBgSmBoHFLqrrMS2Y1yAIzCL+ZoOthZQTfMhTEHIGy1NDDfyu0ZL/f3xYswGjAbjJEKeST82n0DTW53Ov3vF/lqMDZbdU/8wE+n8hVauRh8yGaviJKKnApSDEsh4bu69oSXBR4ZA1sH6oPkJzm7nim1sqF40IDfQE8xauCiWk5/74Mua7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XdFWNuTMeiGr9Rlk3Z62aa/D5W/TtMlXM12f/WpgkhE=; b=mchWJUVDs566BKCb6YMDZGPfINaB4SxKdCviGpuUmwZVr/wvnftbSalBAKfJddu9EH/ZWwbF9iN/758EgsgE/jnEtLzsi2MJpC6gecak2gJd/njla+GvDZ6Vcgs9QVBMGYLQsKMOqTpKYGvV9QLfugztpEc7rtvzVCaS0FpZCjwvoKiinsG1ctO5RXaYqSc6NQypNICJ0vrtGIfZW3wyHrVmIA3XUWNeJMr7vPE9LC+kmCXveMIOJeQpB8yElbnoLrvALSVXxSkyza+8d4WRerP2SnfEqxWvc+R56YGCtwhBshxmISMWHoYJ7tSwgjk18ZdsDJSgnww4XCW+0FGMew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XdFWNuTMeiGr9Rlk3Z62aa/D5W/TtMlXM12f/WpgkhE=; b=pTYSxGgH6pmbjFDm+rcCFEOm+SehaqEGyY2ZI45RK6R9aNL1Mi4BiC5/zXy1/nysLq09XvHIbHzIhWmrHjtpVASeXPeJp/t2e4xAtcTgk6DIBiHz4OJWSQGFoPQCQM+1U3RRo0ZKFPApfe/LObcxHttrMA1wwEDOSQl95P6WlGE= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BN0PR10MB5000.namprd10.prod.outlook.com (2603:10b6:408:128::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Tue, 6 Feb 2024 16:35:20 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7eb0:e361:caf4:a410]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7eb0:e361:caf4:a410%4]) with mapi id 15.20.7249.027; Tue, 6 Feb 2024 16:35:19 +0000 Thread-Topic: [External] : Re: cond* vs pcase Thread-Index: AQHaWRgKhhpEO2juuEiBwBfRN7bbCrD9fkLQ In-Reply-To: <E1rXO89-0003Ll-3B@fencepost.gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|BN0PR10MB5000:EE_ x-ms-office365-filtering-correlation-id: ddc81da3-8681-4784-d665-08dc27319bb9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LnjbEwQkL+AJQhwJ/wxdRe7P/UfNfl+QmhRMXbUUkt3EhdadAAx9aVU3GlvmfTDQaWFXrTTDTMsPaB6N33OfKyeL4tSXYC4xEyuOdCf8gAqgbu8HkayI3eTX91K7vfb9/+n1+j4zyX4204pIG71W9//rCQNJL9fUVOktfrH4LXm2ukAZNDKt1HcVAwxP/kig+qqfnJg/dFea+A5gM3r+ibKCEJM2PiSLG4lJRXuSGG93sYClwrUYpRCrRh/QKGJmYiZ4Rgd1T9nL6XV+X5MuwhvxadQ5ryDhLphLeJ9LQIy8fENsJ7ASJeaXJX/wtHXF3Ec672/YUOPfHuQY88REH9ZwEY4L4Y0cV4NwyiKOWh8H75ALdSHjr0o6bl3V8g/UaSVunJHsLTNyyqJBOnjqB31qHKYd9V/81HEHwLtn3kP3cPvTNDBxdy0qQYV7IuU7uRkidicUG4X5IfNB/CUiHP1/sCCy2cqZe4vzORGjHnuzMo+9DwBFC0QnGo+J8PicGabQzwZ5SZA/f1978DB1tE4XyP3XfjC1laeLUyKcIy+JHm37vT1mMgmnVb7XgkXL8JvRD0P5b/KatrPxJDHPkacQe57PqW0/1+BDCClP5OZKp2b/K5CYR1tEA66Z/VUF x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(136003)(366004)(396003)(346002)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(44832011)(52536014)(5660300002)(4744005)(2906002)(55016003)(83380400001)(41300700001)(122000001)(26005)(38100700002)(86362001)(6506007)(9686003)(110136005)(7696005)(8676002)(8936002)(478600001)(71200400001)(66556008)(66946007)(66446008)(66476007)(54906003)(64756008)(76116006)(316002)(33656002)(4326008)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EXxD/4cCDq8uvCJmmFdDzmnsJIn3+zaA5mrWL6Z/eKi1E3PeLFqVXR8e+qwv?= =?us-ascii?Q?iT/pcPbypstBY5sgtwUkXU02sE09pQwfeFSIoh7kxLu2g7OsOx+wZ34SjQLO?= =?us-ascii?Q?Ozyd+YY525KbRy7g5FQCd/QNDEFdev3dDoD7dnRZeTQ0FGuoyw0jfvtxm6HG?= =?us-ascii?Q?n4wHPtZLDzJaxl/+7ncSBOQl4muogGkhsunyHsw8VVNlh+3onLLzGS5snevR?= =?us-ascii?Q?+1ER+Uicu8kUU2kTnfaIPw3ywduyi2W4qA3IuP2PKgpr9kFS5ezK6li5pnsp?= =?us-ascii?Q?TgRrvkYyrBRXbb+7OgewDhgBnRjlsidOGBPyUd9oPdQhtwSyirOCHE5kNlzQ?= =?us-ascii?Q?0S3B2pEBGCpYufhHG+Y2orfwYXF4M1imtLiG3oejxilmnKGTo5P0q/5Z37yM?= =?us-ascii?Q?utLtAyVl4aFM1T4I1+Bsrs66fMfy/uztKprcU078Erq5gzC+LmtXK14U7H6A?= =?us-ascii?Q?yC3qT8ZiweT57k6NhORWFXi4kPi4w0LY/MQhJfZhQ2tBHC/9VFtEd7/F7saJ?= =?us-ascii?Q?r1ZjCgYD8rk9mFeipAo49TgI1bPErSEABOTFClPEpAB7threAODeVWk9vX6G?= =?us-ascii?Q?Vn2/Sb9+GR9pYmzoqfespPTc8a1tzff1IbxNl/Kz9BxeV5FheHlSS3DqQLaB?= =?us-ascii?Q?78 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: KL72EbJBZYt9XNtlnjrgnMHcDhSWzKF+/qx+7pX+EFlUvoe+kChXVEUv1nuTttyllbDG2v2ZqUoQelCAMQCsYn+yZrv8Z6Jn3t4wBFk/Wz6PKih/TSirJ/Rs4mMptdkFwzGD2CIs3ExCuynNZOi2TySm0VWCfQxoGzWX/pFOJvAZdUduYo1E5SzHRephrtJx5REtgN2PWqbJ/o9e/RGdFqxSvsiX3rGpE0hfi2kob6sxayvNKPJSJkWjCRyU5qieM9TCoMix8/qcOfeITPWdW9G0dbzlFrGZJ2+yJrvriM4D/c/7QvMRa5lqFiC4pAMA5BFp/fbpclQDG+4BY8WGZwQpjtSq0xJA5YJvSRwIgBdGexg1eHPbMk8AwuRFjl6tb+Ru4BfKveGYPG8VwuzvtdIs34/OlUvlvs+7CDkKRHsWncF/qWv/BjlnR+IuYyzbV+aHm4ZELGo4H2uG1xFY+XZe2SLgGoGLvdd9Qb+fSfPM+WZPBuEu976uG8nI6wQf7uXyyJIbAhjSPKJN+SyxsvvFD1pZjF9PlT2u9vF9KqS2JbonxkX24aQqsuVvkHQvuwVGxnOOjLu/uy4YauWzcMSpSyYv0h7T9BiQg8vydkQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddc81da3-8681-4784-d665-08dc27319bb9 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2024 16:35:19.8725 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Zsh6ovYaICNA5SvUqI8pqBOtMIm8pkTE7+MrD+fmPMe9itRBkqPQPChlAPhn7XQvkB/50uHRExyvhtVdoJkt1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5000 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-06_10,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxlogscore=732 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402060115 X-Proofpoint-GUID: vC3uBBK7b0nfWpzxQm2lxquNcVtegBfE X-Proofpoint-ORIG-GUID: vC3uBBK7b0nfWpzxQm2lxquNcVtegBfE Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:315931 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/315931> >> Being able to do equal instead of eql is also=20 >> something that speaks in favour of pcase... >=20 > It speaks more in favor of having CASE where > you can change the comparison operator..., > not something much more generic pcase (or > even cond*!) -- i.e. why use pcase/cond* when > you're not using any of the features that are > the main point of those two macros. Bingo. Just because `cl-case' is limited to symbols and `eql', and just because Emacs has relegated it to `cl-' instead of having its own `case' for such things, is not a reason to use `pcase' for such simple cases (trivial "patterns"). `pcase' mixes powerful pattern-matching with complex destructuring (binding). It's truly overkill for trivial case-testing. ___ When you think that all you have in your tool box is The Quantum Electronic Super Jackhammer, you dress everything up as a fancy nail that it can recognize and handle. Lipstick really not needed. Not a code-obfuscation contest.