From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Replace trivial pcase occurrences in the Emacs sources Date: Sun, 28 Oct 2018 02:21:38 +0200 Message-ID: <87zhuykjjh.fsf@web.de> References: <20151216202605.GA3752@acm.fritz.box> <56892BDA.6060103@dancol.org> <871t9yk98g.fsf@fencepost.gnu.org> <568936F0.3060505@yandex.ru> <87wprqitj5.fsf@fencepost.gnu.org> <56893C8C.3060200@yandex.ru> <87oad2irtd.fsf@fencepost.gnu.org> <5689456A.1010601@yandex.ru> <87egdy8tyz.fsf@fencepost.gnu.org> <56895FDE.4060406@yandex.ru> <8760za8r4a.fsf@fencepost.gnu.org> <87h9iunkcg.fsf@web.de> <87h8hc4xw2.fsf_-_@web.de> <83tvlcsnee.fsf@gnu.org> <87pnw037ar.fsf@web.de> <83ftwvs7y9.fsf@gnu.org> <877ei7mkfh.fsf@web.de> <87a7mze7tl.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1540685992 22048 195.159.176.226 (28 Oct 2018 00:19:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2018 00:19:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 02:19:48 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGYo0-0005eK-13 for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2018 02:19:48 +0200 Original-Received: from localhost ([::1]:38238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGYq6-0007xt-BG for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2018 20:21:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGYq0-0007xd-4W for emacs-devel@gnu.org; Sat, 27 Oct 2018 20:21:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGYpw-00022a-VB for emacs-devel@gnu.org; Sat, 27 Oct 2018 20:21:52 -0400 Original-Received: from mout.web.de ([217.72.192.78]:34265) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGYpw-00022A-M2; Sat, 27 Oct 2018 20:21:48 -0400 Original-Received: from drachen.dragon ([94.218.210.177]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ldn2d-1fqbx92pBz-00j4pU; Sun, 28 Oct 2018 02:21:40 +0200 Original-Received: from drachen.dragon ([94.218.210.177]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ldn2d-1fqbx92pBz-00j4pU; Sun, 28 Oct 2018 02:21:40 +0200 In-Reply-To: (Dmitry Gutov's message of "Sun, 28 Oct 2018 01:37:46 +0300") X-Provags-ID: V03:K1:hVdtF7y32dibQYwRVjlmOty/k1L7IGmMqtwhy5uW9f12jpI38BR OCc/f3goSsrN+c/DYncgW10XmLgF1MhDAioy6rH+Yop7sAzekH4meibibRI8sgZOmAkBIab c4wHVzTTEBQRIzup/j5F1BRlUNwJY14KWDNcDD2ijPX8QoVrCYd4yi+qClnzCnX9tn4r357 id/lP2ST8ch7taXDU04yg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ova2XwO2OTU=:VwytHjNAMT4KHCoFTNKtg1 zfKhy4RXrJ+HpXOzfwzXVgH3zNywit5YoD1p31IBPOXlJ42Xucot3gpbJR8eRk88vv2ycD2p0 EwoGd09bJzBkzEIPIGYoekhHFm0wJ+Gi+/lrK/nhEjhoV5d2ANTaPQZj5PKu+rEcKSDNKFo+0 Lvtt9YTWhxBgCY/4J9IcS7mGBGXO0vm/9YYpSsljGmLM/mVatq2trV+cRuCa/6W9AkPYw3nzb lhV9juyCqFmka5r2tJghn7g43EG6OJD6L1UXHpfvp/zvTZ4akSVumvtmy6mmom434koBXlLAa iNxcQNpHIRB7A8zkJbmMRbfL5h+r7sckSiwLps/GbJ1gMxj/NpVkashiZqF6gPlwSMCA0FmMS sS2FeRKKs44Our0ahoT2uDoBcHVLxgdZtcOrynOk+vwa95E5DG79PTWEH/XjEN7pouJmXo/kw zQ3PhQ9qjwfWKK3Iid0o/qorCxMl4WRTZ4GwmyArbOiEY5/kbL6KJtCDHs7ZllnxVE/Y9vYZO wCkjpNWewvzgi6YwuG62aHrdsV6huVN/P/OY0oYoafm4tZOxpjDheeD6+iWIqDlibXTvJ4ms8 jIh2oZCpWjJrOroIUF9aAnvRY13J0bOMjSlj0LNP9KSAerkI97NAE7F5CEx11SmUBiQyqh+S6 vWV/sFkhAYa8Z6lMwzVOcOEv7D3XHKYLSx08w5TqWwYDc5wn1N5v8N8Ng8HevVGLnFl6+waTQ GQV4cEDccU2xqLHxOr0CpHgJH1x5oGj65kGFdE4Dc7L2VLTrp3YKzwLBeOkuQfN7JVANXWm8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.78 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230743 Archived-At: Dmitry Gutov writes: > We could also assume that the silent majority is okay with the way > things are. For example, I like pcase, even if more complex cases > might look cryptic. I also like it, and your assumption could be true. Who knows. Pcase was a big improvement to what can be expressed with Elisp. And I think its syntax and semantics are quite straightforward. I doubt we will find something more simplistic that has the same power. Probably the main problem was that the documentation was originally written in a quite terse academic style. Also, the recursive nature of ` that makes it possible to combine it with all other patter types is hard to get, but also very natural and powerful. It's just consistent that when backquote is used to construct complicated lists, it is also used to build complex patterns to match such lists. Nonetheless it seems that ` is one of the main reasons for the bad feelings some people have about pcase. Michael.