From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Fri, 1 Dec 2023 10:13:44 +0000 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> <83zfyu9wdg.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="11625"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuri Khan , 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 11:12:28 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 1r90VY-0002oc-I8 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Dec 2023 11:12:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r90UO-0002Me-C2; Fri, 01 Dec 2023 05:11:16 -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 1r90U5-0002Ep-EM for emacs-devel@gnu.org; Fri, 01 Dec 2023 05:10:58 -0500 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r90Ty-00007m-Ei; Fri, 01 Dec 2023 05:10:54 -0500 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50bd8efb765so767289e87.1; Fri, 01 Dec 2023 02:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701425445; x=1702030245; 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=743vJp+5ec4cUI306/3gSu32BxooAIXRbTmuYhA7uxs=; b=MD01z55EpDkUztBzc1jP8T8wfIa0gvzAau4jWPMUU6qiruMRv48oqLQc0GBa6KeLEn lF+2XsYWTbWD2iXeD1YcP/wmKrAqqxy+ELzLsAwvZsy4NbA97Fy0wA12bwnfUvM2hUEa 7su8WUbYMVvclMenENGogqS0hPWlJH81Sdrl4lM090C3IJb9Y3g/x8ivR6gs2unYu+r+ dbI7uam50bF7BYpbiRF/64GlYPjC+qk2kt6ViNDezYU7vcOAb9EB30Fr7JU79CZeVOlF moKosWtyzzjpQJhrpc0AynZnfVZreH6XSjn8U/ZF6DNUMKmixSLEXkp7Ox1YflUv8M4j bjGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701425445; x=1702030245; 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=743vJp+5ec4cUI306/3gSu32BxooAIXRbTmuYhA7uxs=; b=o45KBLLRMSYA3yZ3HrzvSSFBgWt0lA6w2fU7Z59RInyar87vkw5DIhr5Ml6vlO0BNH GfgGxEi0/49cD6O3ZX0Oo8U38XQ+xeLeymRHBhOWeysTPKchfC/tZcO/1ZyFQyHC4+Zg Y0zlukDI+wMv1nQPX/UcBm8PDvOFwBIBJfyq8ZG0ImOaq0dFk17vlf5eux65IP46cH/d 86Luga49XkRZPST4EZGLxdAFKCq/ON+V1eBsgtxwUXiwiUy7QDKRjUMxYDTs7597JbCr 93jLP5xbExf2Y+vO6Mw2YW2tyiL2kVUbD4sqaOXA85nATEeiCmGbFSPGCfXbIwzbWqF3 17fA== X-Gm-Message-State: AOJu0Yy2P+ba5OIZ9tzaTjpXETK370xLs2DA5H+xhTyIP6KkHNg2QDOx V+7d5ceqqJAzuB+aONFM5XxQ47fstVyokQTCVsrLXwr4wz4= X-Google-Smtp-Source: AGHT+IHnTy3XBGnIpUo/xgyggzQBPedZqO8JnTkpAXeXr6fyC+sPlsZfQG3uAi+bbDkx2jNsB6SeM8d2W6vue8cxNkU= X-Received: by 2002:ac2:44ba:0:b0:50b:c2df:b969 with SMTP id c26-20020ac244ba000000b0050bc2dfb969mr485867lfm.48.1701425445170; Fri, 01 Dec 2023 02:10:45 -0800 (PST) In-Reply-To: <83zfyu9wdg.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x134.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:313431 Archived-At: On Fri, Dec 1, 2023 at 8:10=E2=80=AFAM Eli Zaretskii wrote: > Exactly my point: these periods and other special characters are > "magic" in pcase, but not elsewhere in Lisp. Sometimes they are just > for better readability, sometimes they are significant in other ways. What you're saying isn't correct, Eli. That period you are pointing to has _exactly_ the same magic "elsewhere in Lisp" as it does in "pcase". Forget pcase for a minute. "Elsewhere in Lisp", if all those 5 symbols are bound, then your example (now corrected): `(,hookfun . (,start ,end ,collection . ,plist)) produces a list made up with four cons cells. If you take out the periods: `(,hookfun (,start ,end ,collection ,plist)) This still produces a list, but now it's made up of six cons cells! That's a world of difference. In a different email, I've explained how, both in 'pcase' and "elsewhere in Lisp", your example can be rewritten with one less period to still use four cons cells exactly. Jo=C3=A3o