From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: combining cond and let, to replace pcase. Date: Sun, 19 Nov 2023 17:03:25 +0100 Message-ID: <86h6lhbsmg.fsf@p200300d6273f4c9da0e982e8a0d4ade7.dip0.t-ipconnect.de> References: <878r6u3s7f.fsf@web.de> <831qcmklys.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5151"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 29.1 Cc: Eli Zaretskii , Michael Heerdegen , rms@gnu.org, Gerd =?utf-8?Q?M=C3=B6llmann?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 19 17:44:38 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 1r4kuR-00018c-Kl for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Nov 2023 17:44:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4kuD-0003SE-BM; Sun, 19 Nov 2023 11:44:21 -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 1r4kuB-0003Ru-76 for emacs-devel@gnu.org; Sun, 19 Nov 2023 11:44:19 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4ku8-000587-Af; Sun, 19 Nov 2023 11:44:18 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8FD5E5C0115; Sun, 19 Nov 2023 11:44:13 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 19 Nov 2023 11:44:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1700412253; x=1700498653; bh=V68msckrcm3TchBwo6PnJE/tM4jCFgMYUmR oEbht5fo=; b=aBDLXtS3QPEhRSCh6EHZR/cZq2s8IPFY+Pg5Rg+Iv0KfE8TX+xS rZ/dUTpnbckNf8OfhTTo9R4XV3RlQBcY0tfPZvJCvJr4Zo2YN5j6JXLoYxkgY2/Q cgcU+JCRcgSpe0ztVZ66jNb0I3ouFS/ozTZOOJIxBpVt/1K4iKBFktouyClNuFH1 AyqiZmR/uUSZsa3wNbvRyWg/gU24JXtjuKp+YYj2fhByc1sH6MiVzjxb0g+3r1WS I2SDVglPIGsNTUSMzpvlCaRAtUQljz10YfGi6txu5CoR3UxA6sB3cqsRuLC0cUuA 6xho9bdnCfn9PjxoWf5Ua0Z7cWQTDtWONiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700412253; x=1700498653; bh=V68msckrcm3TchBwo6PnJE/tM4jCFgMYUmR oEbht5fo=; b=N4qul2h6gdW/17Hlr3SX5qI3lVRrlRN9dQxPvYTfiosKslhjdj3 6SI7oagzqoZSiGhf57VG+tV6ra0p728O6Mjht8xl/kpcDY72irHazFseT16n9Epa mWxskmscL4evBfqVQn8d8TRFD3nYxlXSdRHf2CISNdy6bXfwHF9jBTi/PgQT8nVp fenPzcWWMEBimNHRHBgmTbx8DCyHIgv82MtP9+ElnFLGauyAYnXOxDNXb3QIGybq EoI021IAF5jhytyTKD3w3Wzq3Zf/JunTMIObu2+1AR/9XZC2P8/LsehSHM/KdiWU +ba/8n4yNewllSbNhLzDmVNgqtmsFhrT5vg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeggedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqhertddtreejnecuhfhrohhmpeflohho shhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hmqeenucggtffrrghtthgvrhhnpeefhedvieevheevffeukeevtefgfeefhffhuefgieek feevueeugeehgfejjeeifeenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Nov 2023 11:44:11 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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." 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:313003 Archived-At: On Sun, Nov 19 2023, Gerd M=C3=B6llmann wrote: > But to the full truth also belongs that Richard has stopped programming > completely in 2008, says he himself, and that he doesn't seem to be very > familiar with current Elisp, if he's seen pcase for the first time a few > days ago. One must keep that in mind. Actually, it's not the first time Richard has seen pcase. There was a very similar thread to this one in 2018, where he asked about pcase. See e.g., : ``` > In what sense is the above cl-case more clear than the pcase equivalent? > I'm not saying the pcase version is better in those cases, but I think > the respective advantages and disadvantages pretty much balance out. I also wonder. Is it simply that people find pcase unfamiliar? ``` I wrote a somewhat lengthy reply to that message trying to pinpoint the thi= ngs that I found unintuitive (read: unfamiliar) about pcase's syntax. I won't r= epeat the whole thing here (the message can be found here: https://lists.gnu.org/archive/html/emacs-devel/2018-10/msg00448.html). The = gist of it is that pcase uses a couple of syntax elements that *look* familiar b= ut don't have their familiar meaning. That has actually been said in this thread before, so that's no revelation.= I do think the documentation could be improved, however, if it were (re?)written= with that aspect in mind. Or perhaps it would be better to add an introductory section explaining those aspects. I'd be willing to give it a shot, BTW, if there's interest. No promise on an ETA, but I should have some spare time in the coming weeks. --=20 Joost Kremers Life has its moments