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: What's missing in ELisp that makes people want to use cl-lib? Date: Sat, 11 Nov 2023 21:57:35 -0500 Message-ID: References: <871qd8sfdx.fsf@posteo.net> <838r7g8pys.fsf@gnu.org> <87bkcbrgnr.fsf@posteo.net> <25924.21015.19614.951576@orion.rgrjr.com> <87bkc4jpja.fsf@dataswamp.org> <12da6bcb-1818-7fbe-12af-8d4607724332@gutov.dev> <87il6bt4z0.fsf@yahoo.com> <87pm0hsxcv.fsf@yahoo.com> 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="38688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=C3=A3o_T=C3=A1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 12 03:58: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 1r20fg-0009kv-Ug for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Nov 2023 03:58:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r20fJ-0000vX-6x; Sat, 11 Nov 2023 21:57:37 -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 1r20fH-0000ul-Kv for emacs-devel@gnu.org; Sat, 11 Nov 2023 21:57:35 -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 1r20fH-0006O7-CN; Sat, 11 Nov 2023 21:57:35 -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=hgIbbqA7zSLObbTAYrorrKfKfC7MvFJu8Rb+HkxzXV8=; b=BXOuEbJGse8M u+UiuRuF8c1SXXOtmXUBY+yOMvx76dnDhOxmA42faI/qwMNY1xbxRuwk4MuvD5kSZKuamzID+vLYq 1V0HD345A37c5svSwr7HJlPUe3EVjixALGg/U8L2bLSN7Yb3mojxCRL5cJG18XTFDkbR7gc9KvCRM bJn6UHgAEkwKGZZwUnjCDtP69EWH07YY4D+vlg4Pyz+/CXT+B6wm+yOga22EkvTtZmSK0Wvscy5DG IO1ah4v1Yam4Fo8QxIhQ58ssVNrdMNTaVq8tmJ7LnLUHCd0NAFykhx3KcZ63yQjWIixOeWPKD1EU8 TylHQ2LG0NXFPmSgB+h5ng==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r20fH-0006Cc-4Y; Sat, 11 Nov 2023 21:57:35 -0500 In-Reply-To: (message from =?iso-8859-1?Q?Jo=C3=A3o_T=C3=A1vora?= on Fri, 10 Nov 2023 11:36:19 +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:312627 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. ]]] > Just a quick question. Does all of this go for seq.el, map.el and > pcase.el as well, or just cl-lib? Those cases have similarities, but also differences. The cl functions cover a much bigger range of activities than seq.e or map.el. pcase is just one construct -- but it is a very confusing one that I can't grasp from its doc string. The basic idea is a natural thing to want, but the details are so unnatural that I can't figure them out. I am sure we can find a cleaner way to express the idea of trying a series of patterns against one or more objects until one matches. -- 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)