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: Instead of pcase Date: Tue, 26 Dec 2023 23:54:14 -0500 Message-ID: References: <878r5inysw.fsf@localhost> 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="3037"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 27 05:55:06 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 1rILwg-0000YH-62 for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Dec 2023 05:55:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rILvs-0007I5-LW; Tue, 26 Dec 2023 23:54:17 -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 1rILvq-0007Hm-LL for emacs-devel@gnu.org; Tue, 26 Dec 2023 23:54:15 -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 1rILvq-00045F-CR; Tue, 26 Dec 2023 23:54:14 -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=LunYUvsXWRs+oJgsGN/7/ITakGSpk9/nDuXzK+OxGlU=; b=eaJEq56igCBD LxEf9PF24ap/MlAjIAXuq6KF4ureupl1iNFRCVEoWYvvdmou4Y/TdfGDmJa0NaSoq8u/QzKrRCbQJ KjsngUIxWvXbHd6ljPoNNgATS+vdeVPqu7dbb0JFIf7z6KpSXyBVzpdK/ekjGr0vDf7z3f90xviDp pnmCRqFHrlKIAzJl/azEpgFTibyKSYHoldO0zxp6V4DLDTfmWQ/N6GVLLsUpmqX9nNywUTQys9cBa jRDtlDi55zPXOqMzgWEHC37bAa++YKhP+EDYkE3u9Tt7Ka/Vrcc3PzaXfSFiNtDMRUEUoamgzFtwQ rkLnhYUaXd74/L7x58lh+Q==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rILvq-0006Pc-4Y; Tue, 26 Dec 2023 23:54:14 -0500 In-Reply-To: <878r5inysw.fsf@localhost> (message from Ihor Radchenko on Mon, 25 Dec 2023 14:26:23 +0000) 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:314234 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. ]]] > > (> num-foos min-foos) ; Match any number greater than MIN-FOOS, > > ; bind `num-foos' to it. > But this is confusing - which symbol to bind and which one to eval is > based purely on position in the ,(PRED ...) pattern. As this states > Constrained variable: (PRED VARIABLE) or, more generally, > (PRED VARIABLE OTHER-ARGS...) the pattern variable to bind is always the second element of that list -- what would be the first "argument" of PRED, if this ere a normal function call. Thus, in (> num-foos min-foos) the variable to bind is `num-foos', and `min-foos' is simply an expression to evaluate. The comments after it restate that: ; Match any number greater than MIN-FOOS, ; bind `num-foos' to it. Is it clear now what that pattern means? Can you suggest what aspects of that (or other) text to improve? -- 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)