From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Code for cond* Date: Wed, 24 Jan 2024 22:31:28 +0800 Message-ID: <87jznyref3.fsf@yahoo.com> References: <874jf3rkzx.fsf@yahoo.com> <87le8ehqew.fsf@localhost> <87zfwurjv4.fsf@yahoo.com> <87cytqhn35.fsf@localhost> 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="35637"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , Stefan Kangas , rms@gnu.org, acorallo@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, eliz@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 24 15:32:29 2024 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 1rSeIm-00096u-7I for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jan 2024 15:32:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSeI5-00010R-W4; Wed, 24 Jan 2024 09:31:46 -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 1rSeI3-00010D-Ed for emacs-devel@gnu.org; Wed, 24 Jan 2024 09:31:43 -0500 Original-Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSeI1-00044O-Lm for emacs-devel@gnu.org; Wed, 24 Jan 2024 09:31:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706106699; bh=sKOGR2QntA5an5sRGC1sguzmmxye4uBKgNOt/OBUJOk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=gvzShExSp5Acblms5VJ2403Vqfzywe0XhCjhi7jzRxJEK97ieBsU5OvoAQLKYGxZr25qKk0IUcwGHbUhX8FnGLLHnpVBZ2v1xm286mXr5SAjJQNqVeschOSjdAinn5Qmc2lY3EbcYChA8zxWE6ktUeuZv/RUGZyFiVcV2JvOBMfekC4x3+bxSyDeMeNmKtbarBMI7b8LXF8c239pz/M4AafZbWyzSiNhyEHMbFlHJsYK+aEk0VMzTTHbGl50SbM1V6SqvhVxED5IXhwr1JatJIegsyNAOz1RO5gAxua88+kMQF4SNQGOkmLO/2pwVDV9Gin9VEygSmo6T4WoE0n+bQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706106699; bh=qtioVLtjUN/O3vitS/ERspcIGriPNzskZQQeU+udtjb=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Rv7Re1Ljx91A+50HHMy1ZZRSl+fQS0bIGU6UyXEWsP6qtch8L2t7DMXENAIUSDjLaJBZ+AE3DyqAV2trxOiGahircpS1xtQ/3NuKiAzSIe/kQj7NOJKl4RVFgT9b0gBqnrNt6I2U5DoJG1ysIUG3GYxOEQm3+KJLEWPjZEOYSFiQ3HVxgMP4V3RP5CWYd3JcG0bSBoJbpLPdVO5JYkDzXyK/ZHy1qqoLp9trNiNFpZseE7lRaZiDd152BqIQhgmjvK01CriPQYy87n6YSUwTTU6GWknrSeVgo5e9zjbcLY/XknvipTZh1C2VpXIZEcFc6R4oKOmr9LmrjYaQUzvgcA== X-YMail-OSG: ghoYDVkVM1mo9.Evd1..3v3N5Ol.sKZCDiVV2d3oFRvgtLA6ElOHZyVlmUV3yJC P1sYwvZxV7hw1kPECR4f.eWlQi3pt5qFsjUgUCMsAEm.3osgYuzgl3odEh7GemXWcq_Gi1aX2hJl Lud7LzfjsMZGQKzes_ZMxIG5C6217zT8uqN8dJA6M307o5zCVN52XTUVrvO0IRFufo4JdCRcjI0E o319u.qbKdoFl72znOVEpGWrdFPKL.XStt.BfYzloPi5uFgz2EjVnPitZREaSAqcwGb3KqmdJbGT 5gKKUoVweMh07odEPFncBh7ZdRT.aFVCYwehUOVjt.ejw2MZNwdDSnqTanno8ZSvcMaPRtDGw.JW 41RZCMnqPU08RkzzQUnfGjgu38ZvNvnlrtYgZ9afWUyKfOegXIRbuy2cMBGRuEyr6f9Pi4.Wbk.y w3ixssbbd51LSbnxl09Pd2606B6Ydo1Nk3TR.oPJcBkiUTXg2rBb5oYuoXz6rub3ZQX2BN3.CwOh tFbJYDBnEc0Z9iL4UKmRUDxdPIC4TH9KmQFwR17Bq7fHVaC1d7gYvH0rl5IDe9omaIYrE.FmGCVx tbkXjruKEXODAGntW9VgNWxOUWWczCJ4fqWRj8y4XSCJZqIyO..Xf2_U5ALcc69YUjUsXYFbEog9 7Kp7YS6ODE1MIJvd624ySWrM8MDYoAAxbwvcghT_6mnhV7knavcrooXNV_a_cb695mMjnKYcykXO oPIzHFQWJox88keKN5lcCO5I7IjReIxbl4aGO37GDysfe5t3ja0FP7wMSSb9WQUYxO.QJXka4QVz woNcbf7KIX4OoK2mfIL1aoVCV0ps5kbhammDYjGaDW X-Sonic-MF: X-Sonic-ID: 6fda919e-2086-4c1f-ab4f-b3cc1a089194 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 Jan 2024 14:31:39 +0000 Original-Received: by hermes--production-sg3-677476f564-mglph (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 58b5cf174caefe3815d66a4a94cc74f9; Wed, 24 Jan 2024 14:31:35 +0000 (UTC) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Wed, 24 Jan 2024 13:52:30 +0000") X-Mailer: WebService/1.1.22046 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.146; envelope-from=luangruo@yahoo.com; helo=sonic316-20.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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:315307 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Aren't fallthrough bindings just a code smell, anyway? I mean, I've > used that 'setq' pattern in the past, but my intention is _never_ to > get fallthrough, but to delay a potentially expensive calculation to > just the point where it becomes useful for a single clause. > > I could easily use pcase for that, and the bindings would be local to > that clause. If I need more clauses, I should do a sub-cond, or > sub-pcase. That is the way IMHO. > > Code-smell or not, it is nevertheless bizarre or at least unhealthy -- > multiple people have pointed that out -- that the new cond* > fall-through bindings don't lexically wrap their users. By your own admission, that is one of many possible honest opinions. Mine is that every further cond form within a cond clause increases indentation by several columns, and it is not long before both the indentation and the nesting hinders understanding the forms concerned. People who share this opinion have and will instinctively reach for let and setq--unless a better alternative emerges, which this is. Perhaps last month's scrum went over the line, and passions on both sides were inflamed, after a fashion. But what's the meaning of so aggressively stonewalling a new feature, which is being introduced unattended by any proposal to remove or replace pcase or destructing-bind or similar?