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: Thu, 30 Nov 2023 20:47:22 +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> 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="5319"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lynn Winebarger , 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 Thu Nov 30 21:48:32 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 1r8nxW-00017U-7e for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Nov 2023 21:48:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8nwk-0006Uz-5m; Thu, 30 Nov 2023 15:47:42 -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 1r8nwh-0006Ur-Ub for emacs-devel@gnu.org; Thu, 30 Nov 2023 15:47:40 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8nwg-0000fh-8E; Thu, 30 Nov 2023 15:47:39 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50bd52e1435so655832e87.2; Thu, 30 Nov 2023 12:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701377255; x=1701982055; 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=wIlUYAss5w9QL6dFx1CHo8z9pQb57X4JkAwGMeGGIP0=; b=HnS+FcwtJ+IBm8EGgSujhAs2s0WXC5HcLRZvgKZZIyLqDPs8EPOMS0S21VaZC9P5Qf y+HtLRT7+DeRk7aO/2o6zOAwuP29iM/CNi+98hBFEH+APYSCgY24ox/VGCvG1l7wMKPG J14cifwG3Lx/aRUU8zrmLMOVRBrTOg1jXNSVLDk/N1SHJO1YBHxvhXxiP6vmZt/RN6IJ 98QNQUmjTFm46474UpX/f8g7qz0SIPQM5ykc8CS5Uvx6pzuaUWGoGEBTsImVg8wgQ+pe 60rWu9iaoZQ2AMkApHNL6v7Rst3RWdVWosEVmh4QK5t9+Nq8zDNzsjwX41wuIVH9Ni/x 8wAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701377255; x=1701982055; 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=wIlUYAss5w9QL6dFx1CHo8z9pQb57X4JkAwGMeGGIP0=; b=LJPfGGEjkaQmXDvT0CVBQs2eR+WNmok+ht2rbXoJwmR8dKJagTEMFW+aCqATC3AMyU kuA/QOdpkJUT4uwmhCBusCBhHfd+xk7ItELB4BO5leqSuYeI2FayoNqShOmvtwFlTZOB eYgd6IYaVlXUgCAe5y9IjAsPy9jN1D9c1u75dagg0SrfGxMJqkISiryl247kO0zPslAq EOEDM4vUvAcfGAxEMB5d434pKbexisuM49+Qdc6b1GiRboN/0AcPqXmrM5cPM0Na9qJx IcHSf+ZP8Fm66vmnLdVWIoUGGHE3SojReIpRXHWrmvUXDwMV3uuCE79WE9TzFSHErfkM 0GZQ== X-Gm-Message-State: AOJu0YyWPhqSusewCAtrrFpBE83JhRxNeEKxUKRlbPnb3Zdk9XRSIjLw 4jFwGZDJHx1THqXBDaQ592A4YnWBB18IW/I/PpE8RDEzJjA= X-Google-Smtp-Source: AGHT+IHx6gGO8wUUKMMEzAV9KnFKajgdGdsRSVMBppOdH911mrkMn0L+PJWRnqX7VS6UoRxDq+CZbc9EuOVg3plzmNA= X-Received: by 2002:a19:ad49:0:b0:50b:d362:8e11 with SMTP id s9-20020a19ad49000000b0050bd3628e11mr67268lfd.52.1701377254677; Thu, 30 Nov 2023 12:47:34 -0800 (PST) In-Reply-To: <83fs0navpj.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x136.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:313408 Archived-At: On Thu, Nov 30, 2023 at 7:27=E2=80=AFPM Eli Zaretskii wrote: > I think you are missing the point. The point is that pcase has so > many semi-magical syntax features that use punctuation characters in > creative ways that every extra punctuation character presents a > puzzle. Faced with > > (`(,hookfun . ,start ,end)) > > one immediately asks himself why the period, > where in "normal" Lisp expressions it would be completely > redundant? FWIW the period is pretty self-evident to me that it separates a car from a cdr in given cell of a cons chain. However, in your example this is an error, just as it is in this "normal" expression if what you wanted was to construct a list. `(,hookfun . ,start ,end) So I think you probably meant `(,hookfun . (,start ,end)) And this is valid in both pcase and normal backquoted list expressions. Furthermore, here the period is _not_ redundant. IMO what's relatively contrived in pcase-- but very well contrived I should add -- is the use of the backtick and comma, whose usual job is output and list construction, to do the reverse, to express input and list destructure. Jo=C3=A3o