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: Mon, 20 Nov 2023 21:42:16 -0500 Message-ID: References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <763f067b-4ca9-1eba-9f3c-424c38589e9c@gutov.dev> 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="5919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 21 03:42:43 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 1r5Gin-0001Lf-W8 for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Nov 2023 03:42:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5GiR-0006EV-2X; Mon, 20 Nov 2023 21:42:19 -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 1r5GiP-0006Dx-IP for emacs-devel@gnu.org; Mon, 20 Nov 2023 21:42:17 -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 1r5GiP-0006OE-4p; Mon, 20 Nov 2023 21:42:17 -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=YaO4lU4+L80rGKCv50q1R/RIOQMJ3Z0XoERJbm2e7gA=; b=CHEZz+VNo7f5 via6dB9eAa82jFG8AX27TcOBCiKWuITOOZ01+BWDr1/fPMsE5HBxOkU1JmZUnB0FBGSL8Tww0yNB6 Rh4hWt9qfb6s6UUf4J887fQdRghK09V8aEoDan3Hqt2/P0c0PlEaO9nnJAimB+QbB2B6PMAGZxYH1 Xgu7AHnZ7fc8ttLOdMmxQNENBsJEj6GWgeDC2N7En6eRMSIKD8IV2+lp3MPVfKE9ivnFC7O485rys m9mayUsZ5Wx6JCiQiQmKPXI51W/P4Nh0CI3HeLg5IF4/4NXBflbDlWbmpHDBDLUJsNyRLrwBHfT/V ArAjifybK9/E7vStFS/vtA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r5GiO-0007jL-TR; Mon, 20 Nov 2023 21:42:16 -0500 In-Reply-To: <763f067b-4ca9-1eba-9f3c-424c38589e9c@gutov.dev> (message from Dmitry Gutov on Sun, 19 Nov 2023 15:49:52 +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:313082 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. ]]] > > They contain code that looks like Lisp but does not have the same > > semantic rules as Lisp. > Yes: it's a domain-specific language. THat is why pcase adds to the total complexity of Emacs Lisp: because it incorporates a domain-specific language. (I called it a "little lajguage".) > To interpret those backquotes and commas, one can imagine that the they > do the inverse of the usual. I uderstand that when you say it, but when I saw the line > > (`(,hookfun . (,start ,end ,collection . ,plist)) I was not sure which part of the line that rule applies to. In particular, what is the reason for the period and inner parenthsses? Why doesn't the code say this? > > (`(,hookfun ,start ,end ,collection . ,plist) Would that be equiva;ent? I could not assume the inner parenthsses were unnecessary. Maybe there was a conventiob by which they change the meaning. I did not know. -- 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)