From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cond* Examples Date: Wed, 08 Jan 2025 22:51:19 -0500 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16205"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Psionic K Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 09 04:52:13 2025 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 1tVjae-000464-4d for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Jan 2025 04:52:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVjZr-0001fq-3r; Wed, 08 Jan 2025 22:51: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 1tVjZp-0001fd-RB for emacs-devel@gnu.org; Wed, 08 Jan 2025 22:51:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVjZo-0002mH-IU; Wed, 08 Jan 2025 22:51:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=AODgmy+ayzDtreOuY04j+sEcXEGsgwCmA6RakBYSBXg=; b=D6bX9J3DvX1R 1VDdbMkM9pFDlojXg76B3+oygWdbk48ZCrR18WdgJJWi576mW8cbqUSZXvUJEtPVolcn8XFfa9YqM jCOpAHMSyJbwdGjDH+YAHYtatcn177tmddGB1F0kZ5nsq+lWiz40C3fafA9MTe2Y4gHEPlxyUpi4Y Hc6zvyhDwZB3OqNN6N2PIWWo2Oz4rkOrZhFeAAHRw9TYE0vdZ5JPcdkzLqOToX6ILMtXRYOtr8Y4j 4XLL2WLiG3kl91xD0m1uDq9Dk0W7KztWRrG1W9L/EEbWVvDVkUe5ke/WIgQeZh3qZN+bbrq5eDub6 7U86fSzzycmqjZcHP7Sh+w==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tVjZn-0002HB-RS; Wed, 08 Jan 2025 22:51:19 -0500 In-Reply-To: (message from Psionic K on Mon, 6 Jan 2025 23:55:09 +0900) 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:327802 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Thanks for your comments. > This feels inconsistent with `when-let*' and `if-let*' behavior, where > there's an intuitive reason that every bind must succeed for the first > or all body forms to evaluate. Is this a first-pass tradeoff? What does "first-pass tradeoff" mean? I never considered the possibility of checking each of the binding values. That would be convenient when you want to test them all. It would ne a nuisance when there is a variable that could be nil and you don't want to test it. I don't have strong feelings about this. Anyone who has an opinion about this, please post it. Regarding the general comments about other languages, I am indeed trying to find a more elegant way to address the same issue that pcase addresses. But doing this in Lisp is constrained by the characteristic of Lisp that is its strongest feature: that code is data built out of simple general-purpose data structures. This is the furtherst step in that dieection that I saw a way to realize. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)