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: Fri, 24 Nov 2023 21:59:22 -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="16588"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Daniel Semyonov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 25 04:00:01 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 1r6itl-000489-0U for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Nov 2023 04:00:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6itG-0004xK-8b; Fri, 24 Nov 2023 21:59:30 -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 1r6it9-0004wg-HC for emacs-devel@gnu.org; Fri, 24 Nov 2023 21:59:26 -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 1r6it9-0004fb-67; Fri, 24 Nov 2023 21:59:23 -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=rMfg6iJL5cYcJkVq8InQLKoQ61AAn1qq/G7lFbqPJ6A=; b=h6izVeXldXVF nfdFE61RgRRhr8yd2BeKDkeJxhusTGyag9cp2pFiBqMN0gJ0yIf7dfa8w3H6GRbHC0eeh1x86aAnq eZSu5dGzcBNqedHuwH4KREZ8F3RuMQI86/8ALI8LLyF/x352dbXBZ3JLeBtSmVZSechasm8Mf8vLp r9jBm6nAL5vQHqYjRckXtRx/0Zcr10oGwzuusqW1LN/1zrliJHWVE075a3LlWnU796T1Wmzn9M1YU 1M0Fh42g/DMrVMzb7wDh0cH8xnNbkHciCoSLs7O+HeomMbI23Uo3zURzAicwjd91aVi8rzdfrc8mj 91SDfTJ34BMk6Y8RAUrg5w==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r6it8-0006dQ-Uq; Fri, 24 Nov 2023 21:59:22 -0500 In-Reply-To: (message from Daniel Semyonov on Fri, 24 Nov 2023 05:08:55 +0200) 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:313190 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. ]]] > And a minor nitpick, I think it would be better to rename 'match-bind' > to 'match-let', to mirror other macros like 'if-let' (maybe even change > ':bind' to ':let'). I am not sure. `if-let' uses a list of variables, similar to (but not identical to) what `let*' uses. `match-bind' uses a patter to control which variables to bind. I think that dissimilar names will make this clearer than similar names would do. -- 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)