From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Fri, 1 Dec 2023 14:07:40 +0700 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> <83fs0navpj.fsf@gnu.org> <838r6ebfhw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , owinebar@gmail.com, rms@gnu.org, dmitry@gutov.dev, philipk@posteo.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 01 08:08:46 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 1r8xdm-0009dZ-8x for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Dec 2023 08:08:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8xd0-0000au-1y; Fri, 01 Dec 2023 02:07:58 -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 1r8xcz-0000am-3e for emacs-devel@gnu.org; Fri, 01 Dec 2023 02:07:57 -0500 Original-Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8xcx-0000MO-La; Fri, 01 Dec 2023 02:07:56 -0500 Original-Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-4b2899dcb2fso630640e0c.0; Thu, 30 Nov 2023 23:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701414472; x=1702019272; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9ObyJdkEujRGl6nernr8fivr9KAA5sovLEWZSvEa2tc=; b=FSWTB4gWOo+OaJTXO+HNxD2tq9sOU4MX/UptyV5kT5K4BQg26TJQt6AH1ock5kg4HI EVCpuq1SHUYuPabKA3uBsk1gipmLpNETTQRnHkcg1PQl4S6YvNFWhB3F9AKsUtxNPFAm jIyF+A/rSZ9z2vnsGwD1wE9/h7lsJ3+IEKun6/HQYHxkim89xQXxGNQvWduJA6e7UcPg 1Sf1TFPLklnsyY0kCX5aYXVYcAA70TyvpoXUy93wm3G2ZTtK1hxmwZQhcOQtgWOHp6jx 16r0kw1NAy8eUBSMhMfHvBuXAWm8YK6mD5FaHf/4iwGe4YlaSiE907ae1kC03/cdkcK/ gB9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701414472; x=1702019272; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9ObyJdkEujRGl6nernr8fivr9KAA5sovLEWZSvEa2tc=; b=dPxEKvz0lxODtzScskc/iotI9aCgXneL33pc8+7pEFtMRy2pxtL3Ll1fNYuzU5BW+7 UiZ/iUOX3iVK91aHucXCZiffStT5CvFisdHvDiv3Rnwyp/u5fDLuw3e1qG7CBahdTj6g 18rBByYQyctl8n5zS9B6h7mW/OI76mu4pb4ZALz1B0oTYbovvEJjvlhbmj9j0cTlS0e6 ZCSmj4yw5FIJGaDtfDpKspoa+epkNigDd779WpipwoD5rPPerjhSvRdv9Q+dLbAo5yJx 7xEjIfc2U6hbAXf8IWYdsOX6x7B5LN5EBR8odZhdbuC4n9E29dxAkjUpO4RjuvphiPYL iPhQ== X-Gm-Message-State: AOJu0YyEi/jxtxp0EwOTCIVIl6q3zNc7HCix3qgPIroTIaKYF/L2L44g UGAI+50uiQpAS/T3vjx8TI6cwL/GVj+bDT/GvKOE+yHe X-Google-Smtp-Source: AGHT+IF+istMXB/GcXXrCBzcwdomRd29V+63YXsnxIerXCDpK3FEiit/9ypLyRjXfjWUXNdfUJbexgEWjvNPiU1M8ks= X-Received: by 2002:a1f:48c7:0:b0:4b2:888d:f079 with SMTP id v190-20020a1f48c7000000b004b2888df079mr7816060vka.11.1701414471884; Thu, 30 Nov 2023 23:07:51 -0800 (PST) In-Reply-To: <838r6ebfhw.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::a33; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:313419 Archived-At: On Fri, 1 Dec 2023 at 13:32, Eli Zaretskii wrote: > Incidentally, the actual code from which this were taken is > > (`(,hookfun . (,start ,end ,collection . ,plist)) > > Which has _two_ periods, not one, which are AFAIU redundant, as far as > the Lisp reader is concerned. The first period and the parentheses are redundant but they are helpful because they emphasize that the first element and the rest of the list come from different places. The second period is not redundant. It causes the (,start ,end ,collection . ,plist) to match any list of 3+ elements and the ,plist binding to receive the remainder. Without the period, (,start ,end ,collection ,plist) would only match a list of exactly 4 elements, and ,plist would bind to the fourth. Maybe you are implying ,x is equivalent to (\, x) and so `(,hookfun . (,start ,end ,collection . ,plist)) could be written `((\, hookfun) (\, start) (\, end) (\, collection) \, plist). To me, that would be=E2=80= =A6 point-less?