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: combining cond and let, to replace pcase. Date: Tue, 28 Nov 2023 22:40:01 -0500 Message-ID: References: <871qcb83oa.fsf@ledu-giraud.fr> 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="24853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 29 04:40:42 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 1r8BRK-0006FL-4K for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Nov 2023 04:40:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8BQi-0000mA-H7; Tue, 28 Nov 2023 22:40:04 -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 1r8BQf-0000lD-RS for emacs-devel@gnu.org; Tue, 28 Nov 2023 22:40:01 -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 1r8BQf-0007WL-BC; Tue, 28 Nov 2023 22:40:01 -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=mLoptTQHRdycMb8/sbYzorty2lJV+YCtsqGaCjBJVxg=; b=M4TGMW5M73Dz nQjl04gOFn+eqtFwOsQGxAjyvEOhB4EeiOMN+BPXtrBUQMI6Lm8IPOfA6ujNS7vb3Kgzbhu+Jo/Z/ xZv/RIytGq9lHpoGUPtTrzSN6o/5L9ydHV8di89k2xL6yGsRD2RyYvD3pv7XFJS7gDoLZgZc3w3S2 H9Qm2GuqG0EpvH1hKBmhb4RVcHy09w7XK+4iqJB7+R5ytoPOGfc6us0eKvTvzVKFzG9WT7CjhWs8A PKwcZ1f0B8ZITNpVdoGbPFw64HRUYT93+8eiRXamBsIknGw870tRpNRm06JgnUTSUWdtK89C2bFT7 1kfqRtOkxVFW09q2wS/SEA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r8BQf-0000yo-38; Tue, 28 Nov 2023 22:40:01 -0500 In-Reply-To: <871qcb83oa.fsf@ledu-giraud.fr> (emacs-devel@gnu.org) 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:313349 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. ]]] > > This form of clause should bind the variables unconditionally. If > > matching provides a value to give a certain variable, the variable > > should get that value. Otherwise it should be bound to nil. > So these form of :match clause would bind variables even though it did > not match? That seems counter-intuitive to me. Since it makes the bindings unconditionally, it has to make the same bindings whether matching fully succeeds or not. I don't see any other alternative -- what could there be? -- 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)