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 20:33:51 +0800 Message-ID: <87zfwurjv4.fsf@yahoo.com> References: <874jf3rkzx.fsf@yahoo.com> <87le8ehqew.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22526"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Kangas , rms@gnu.org, joaotavora@gmail.com, acorallo@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, eliz@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 24 13:34:50 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 1rScSv-0005YR-Ba for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jan 2024 13:34:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rScSV-0004QZ-Ci; Wed, 24 Jan 2024 07:34:23 -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 1rScSU-0004Ok-Ml for emacs-devel@gnu.org; Wed, 24 Jan 2024 07:34:22 -0500 Original-Received: from sonic304-21.consmr.mail.ne1.yahoo.com ([66.163.191.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rScSR-0005ZS-Lu for emacs-devel@gnu.org; Wed, 24 Jan 2024 07:34:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706099657; bh=oQd2PAtu5aCIUbi/fBpR1c6T4wxJP3GdHXU2zIH1QdQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=oGoyXlNyzwjn1F+Bh5/P27Pd/gbQDWcKx8ZVV/0RKsmNW4ssgBWX0cBbcuqYz9GEp8FPB+WvgFMrY2z0r+7d9HADpD3es2ZXfJZDbASmX3rNWWTvfKfMM+mJfF3+TjIE2N9jH/gDvRLQxQ8xl1Su1zSzZeGsfGQ2fq8PLa60Gasi53hLWd2wJ/W+yED6EEIRM52LdsVL3p2i+iZ8OdUSx3UV8Xl18tXLPSKk6YCvf27Be85JEGvWtEFkjdPkqTET3BoufsxArkIAq3N6h3IRx1XE2sf/vXFvLpIBgkBp1ikR4UpxEMPx1RhoI3koyz8OxUBiy6BU0nuJgrx/aaQo5Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706099657; bh=pklvL1aUXzrImBp5lglUZaLGWyO3HE+ysfVjL3HYvXB=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=oZQru+ZY7fAU01GdYZ49BNSBi2uTaz2A3nIVDWl9V66wXpXkMrt2vnsd8qkASa9T6yodrkYl8jBv4m1ZjiBO0Pe112n2FrA/BAY8JqvFkbUEszD69DOwbOymLGtDdezzIi5ARwhLILXbMNk1am0yEdiH1/iiM9DaK98Bvggr8gwwdUX0dogtXhHHpQNqPeYzNoN11vGU/wazSB0zUHEFyXETa2D8aU7OAPHFKGFvmqQzAElu+uyr65AOVWcgmDqCm/4MErlZXeAeAu+9MZhdl4tJDL/sg81ytI5EfkeB35uD4wuL3IGRo0NKp4D/qT2/o2PGtCQvUEn3tQ0FziRYdg== X-YMail-OSG: dpBoH3EVM1lS5CZ2djUOa2AXHVD0AhXTRMLhAsYxDm7D7pt2AwNk.7T8DDDezRb W1tGVQyd2nyJRPHhZ0AR8bKg7CQepEmVGncfrcw7BJKgeu23ScsbzJ3jNqcvQBrOWRskS8..bHhf CUfZdMymIyBdOHI1Lqpnt5c11vyXn5pTVEgy1o1yIXYVka4XUO2QIDsprAeXq4HcTmasuFN1oOgK DQNd95zsvXdiclDROmTh.GDOzd3QPO22k7CwrLnKBLl1pmqO3LMGTwuV11L2zrB_elGFQpf9Ww1P VtvzWKlbEMdKU.KhGWU4yc2IKlwq8uhfgMjD7UEx1zPkbZKTV.PqHo7MLAMHLuXjM3QPNmFmAmp2 wLsMFsiuHK7GNV_VTCayLPOiCE2l_WuHZaNOEdSBYpMiv6H6o.xVtfOg2fHG7z20I1kQxj_cERGI WIVnUD6qoRh4twsoJCfRRFmgPMiSUTyvmjm62Vfjv_W.hCW016sJ9hxmd0OwlPDbb2RwljDaRfh_ cjI4ltpknEmzYrAYt_iVwxnudLcgbidY1YYTcMOF4_0QNrS.q3CWx9DYkaGAsdzCIWfPU.tSwkOW tOQ30B6kuuHz4dDrqJZ_en1MnMMO6cMQrRNmOXWMHi3vjLT50ffhKShv.0lDwnkYEI0wCbt0NkNz uGPSYUnrkF9j8mVJECXdnuAjGHvlyKwvY16SIT5s2o_2ZnCo3lSnIwICERcVwFMdx3VdgAg_721_ xb5uli5quhzgP9zVpH9YrCaRyisotb0C8zW_sjHy1IpbE_IIq_2ufSxa_waS50Ean5mAQG2g2yWH N4pDoS_HyiyLH6rFdy_93Iz6ZfnrO.shiLwU_lx2jv X-Sonic-MF: X-Sonic-ID: 15e6f5a7-7d51-4b31-addd-2f7df154239a Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 Jan 2024 12:34:17 +0000 Original-Received: by hermes--production-sg3-677476f564-gzbjr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3b9a51455174bdd1ad2bdbca848f048a; Wed, 24 Jan 2024 12:34:14 +0000 (UTC) In-Reply-To: <87le8ehqew.fsf@localhost> (Ihor Radchenko's message of "Wed, 24 Jan 2024 12:22:31 +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.191.147; envelope-from=luangruo@yahoo.com; helo=sonic304-21.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:315298 Archived-At: Ihor Radchenko writes: > Po Lu writes: > >> Stefan Kangas writes: >> >>> If it does _not_ come with such a plan, it's slightly better. But then >>> that begs the question: why add it? >> >> Because it will forever free us of such forms as: >> >> (let (x y z) >> (cond ((eq (setq x ...) 'bar) >> yyy) >> ((setq y (... x)) >> zzz) >> ...and so on >> >> This alone is too important a feature to be consigned to ELPA. > > May you elaborate how cond* helps simplifying the above example? It will be possible for a clause to bind variables accessible in subsequent ones, eliminating the let and setq forms.