From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Fri, 24 Nov 2023 19:14:16 +0100 Message-ID: <875y1r10jr.fsf@web.de> References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <87zfza2aq2.fsf@web.de> <7nmsv9zq6u.fsf@ecube.ecubist.org> <7nv89x5tsi.fsf@ecube.ecubist.org> <87o7focuf5.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39431"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 24 19:14:54 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 1r6aha-000A0C-JS for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Nov 2023 19:14:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6agr-00017l-1Y; Fri, 24 Nov 2023 13:14:09 -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 1r6agp-00016d-N4 for emacs-devel@gnu.org; Fri, 24 Nov 2023 13:14:07 -0500 Original-Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6agn-0006mg-JN; Fri, 24 Nov 2023 13:14:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1700849641; x=1701454441; i=michael_heerdegen@web.de; bh=d/IGeCHk2XRFLHKUADa6JSSzgRDvLuBvF2ekWDfkMD0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=VSWZ1BWj75W4Hm0dbmtgjiINOla9bRWTLS33mEl387VOh3vv0AFzD8tK0nTlaLBd FPLkVismsT/B1HHOvf4ByggZzOK3p/iY1epzyUaq0VuA0FlIHrezHG0vQO8pYMI8T 8brEdDEm0HyNLUcGoFYsm2WZlNsAVgJBgiZGqX4V5GlsHOm0h7KMUHIyQrI6Fioi8 yU7u2gkqd9AcTyoylYp1uGDGs87ggevPSsO5G6o9O3gEjSheO9nlX1wnrQLNwmaY4 +szSYLsdckxiaUA2jSJBwfrznI0QmRh7EE5BvnS2VyV1kvcayE8okBddvbbgLjgdS YQEy2uAfYozMAuksoQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([178.6.28.177]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MY5fd-1qo5GG2brZ-00YLZy; Fri, 24 Nov 2023 19:14:01 +0100 In-Reply-To: (Richard Stallman's message of "Wed, 22 Nov 2023 21:57:41 -0500") X-Provags-ID: V03:K1:QhPLaeku1Uv5yw6lbh/Pn+vwxXRpbUmhW1SswEcdJawVhaUAai3 JxCV+5+rb/LTFIc5AmIHlQXqjTXbvvYhlBOxbeyk2W5GrhWJ8Lq33eBsUH5lm1jiaXGyWe+ U+YUfbiQdXNDhhrzxkrGG7N+T3mh4A7STm6w46/fENCOG0J7azeup960eM/TFm6KDfw8BtE hw93Rq8SYh25wHuqtCOaQ== UI-OutboundReport: notjunk:1;M01:P0:ydCOUX9z8S4=;jEphfskNd0wd+oj67m0+ZO1oKMy VbVuXNHBi9bhkmNpGzlk/DHm3x2PeINL9nXDC1kgtNdTXC6fm7HojOsovNm9yCWyK88K4Cm+3 wtQRWC6Nok/E1mg4tAZxAGNvXT4zVUdK52ne4RsQllVKY0Md6Dxmt08hyypnawiZNKDFKdmBw tmH3fryiMitIertlMjJF8LfVKBg2Q1psLnqrUNRD+LVUFGC+hnKz+NZ9dD36gW0/n53wKkr5D dFbYIaOD8lkxvNgJp92mr9HCUNuPahAakKACxi0OzU4P5hTZD7vCuv1//tDCSY5GGbekLS136 Wmu5UTDHQh1b7AaKde4/8+BOcEJC7ZhGfiWwDrZfjGEe/8qdUmGwqLk493+Y/LDloejHKs3DS Op4PvOrpmu+ZUWh4Wt/aSAs6oMHl31els4pAYaYb1+Zug6Iroog0sP1SvqWwv2zzUSaLNgdLy M1TP3wRUAWINVekKNhj7EfgRValKKDVqGvrBU4TCiKx7yPoJECJ4rgY19dDakr5kLyml99Ztl WABxxYAV54UmO21aW+8rrIQIcX5Qabbt3JaWXViTVHNmmQL9XS++63QIVcj2mo0GTJw3q6SGz DW8OSbST4/ZnUDlyAfa4FaemYxPA+TylSH4JrMMkkFS5AwFP/JqHtfMKGz0nOzw2rUQeJdCkh 7T4ZeqpSRMRxVWVfRphyKq1nfUFDPI0J5WgfAtcG746ZM617aioAuzM7cy0Q1kh/GSG0JmSzd oIsyu+yNL9PKZzECVxgyIcg2I1+SpL97sh6kiuR1Y8lJuwK9abG+SG4NylrflAX7O8PdRfdu Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_H3=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." 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:313180 Archived-At: Richard Stallman writes: > Would you be willing to show me two or thhree examples of this, so I > cam make sure those are natural enough in the framework I'm designing? I would suggest to look at some more complex cases where several `pcase' features appear combined. Making these complex cases not harder to read is important: a suitable replacement of `pcase' should be able to express what the code is doing in a similarly descriptive manner. [ I'm still skeptical there is so much room for improvement I must admit. ] I collected some more or less random examples that combine several `pcase' features and are not too long: ffap-other-window menu-bar-item-at-x completion-at-point byte-optimize-funcall byte-optimize-letX cl-typep I can help with the translation if this is desired. `macroexpand-1' can also help but of course it's more practical for the smaller examples. I think it would be good to try to translate such examples into the to-be-invented language before actually implementing all the details (top-down). Michael.