From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Thu, 16 Nov 2023 11:13:57 -0800 Message-ID: <133ebfd6-b4d6-0e21-6329-910b8fe00cd9@gmail.com> References: <871qcpn3ep.fsf@web.de> <64993a12-3773-f98d-0a83-2fbf0ba96efa@gmail.com> <25942.25129.297282.348152@retriever.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 16 20:14:43 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 1r3hp4-0000mB-SJ for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Nov 2023 20:14:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3hoS-0002gw-RA; Thu, 16 Nov 2023 14:14:04 -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 1r3hoR-0002gM-KR for emacs-devel@gnu.org; Thu, 16 Nov 2023 14:14:03 -0500 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3hoP-0008LK-GW for emacs-devel@gnu.org; Thu, 16 Nov 2023 14:14:03 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6c39ad730aaso1067885b3a.0 for ; Thu, 16 Nov 2023 11:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700162040; x=1700766840; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=O8FSyBxIlm+M6PAWZUFTtG5a0B9HTI2NlPw0eNldJrw=; b=UR/dZ4k92xmVEJa4TdnUa9xEdWQJco8mc+q06DpFuccsvWj0RQme6MonBd4lkuGrIj 6KvVFTDwBOhrPBNUCSOkUqZk8EABUNhZe4ewSYbfIuo6QO5hUWPDnUI0JZ0NrzLOdIOu SKE5eCl/Dy+1Zq0A5OIAJjuj8Cp80X43GzIpKKi/5nWlmgvgqsdcqabnjHjKh0DCjVdo D7sqd3h0zNkBIwvoJo409NExZiRpbpGOR9/ERZda72qgvMVQv1pEGSFO4fWCr/KZJUij WzNmcO6AlbXcxx7FmIPcPmaiP21kMCrSdLfnwHPMqWtzo4nOTCYFh2wr0Lsdrmjb0m7s Cwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700162040; x=1700766840; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O8FSyBxIlm+M6PAWZUFTtG5a0B9HTI2NlPw0eNldJrw=; b=ZVQQRaq7dqW45zj0ZDtGSNFVHJiP+053t0uxnQQotlCV74pQh6BBE+qW61SRp5cTSa P8oAFN8VEW3ToRo9RF8JBujQFywJjIbhKkj020JujBquNuBH/tILNGptMhF9u8qfTl/h RSoWyhMylOTVK3Njrx7JBtwThbqmk7hNY17/fcjRx2akPaw/MLYOiNZkzVaWOisMSc9e ZchcEqx+VTvGPgAyz6xc/gEfzE+3SBCRI7biZyQZtiXUEwvrfMAHloMWVFwb48m7jfOC B6x7hTzcPl/eWVRQJJ9c1xjmaIAYGiVIMn9bqSRc0P7pF6zDVdYM1/JB8XrBoIJlnC1b e/0Q== X-Gm-Message-State: AOJu0Yzla5Iz1HllibLbbRyD4FG9DL9Vta/WkBIyfTRDXTPH7seNe+Ce KDfFtRiN8p/N+GQ+CWMM4mg= X-Google-Smtp-Source: AGHT+IGcofBXr+WLI9sppEgHC7kwHjm2dTA0CTu1WlW6XgQizw+QzPnIIKBYrfkFfCkCmtSx70ObMg== X-Received: by 2002:a05:6a20:4304:b0:187:9b8e:3a87 with SMTP id h4-20020a056a20430400b001879b8e3a87mr4758795pzk.30.1700162039561; Thu, 16 Nov 2023 11:13:59 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id p11-20020a056a000a0b00b0068fb8e18971sm77534pfh.130.2023.11.16.11.13.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Nov 2023 11:13:59 -0800 (PST) Content-Language: en-US In-Reply-To: <25942.25129.297282.348152@retriever.mtv.corp.google.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=jporterbugs@gmail.com; helo=mail-pf1-x435.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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." 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:312831 Archived-At: On 11/16/2023 10:40 AM, T.V Raman wrote: > Yes. especially if a use I was trying to understand had some helpful > guidance right next to it; that would also help one learn. I'm hoping that putting examples in some separate place (e.g. shortdoc) would be helpful. By my count, there are 1182 calls to pcase in the Emacs tree, so it would be difficult to provide an intro to the syntax before every such use. (To be fair, 433 of those are in Org, but that still leaves us 749 cases in other parts of the tree.) That said, for unusually-tricky uses of pcase, it would probably be nice to sprinkle in a few comments so you don't need to be a pcase master in order to understand what's going on.