From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Thu, 30 Nov 2023 14:14:04 -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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002e9359060b6375d0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7487"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Philip Kaludercic , emacs-devel To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 30 20:15:17 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 1r8mVJ-0001fl-9O for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Nov 2023 20:15:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8mUT-0002ZD-IR; Thu, 30 Nov 2023 14:14:25 -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 1r8mUQ-0002YO-Ll for emacs-devel@gnu.org; Thu, 30 Nov 2023 14:14:22 -0500 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8mUO-0001IG-I2; Thu, 30 Nov 2023 14:14:22 -0500 Original-Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-28613d87c4cso1247391a91.3; Thu, 30 Nov 2023 11:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701371656; x=1701976456; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cowZkC25AVk1r/aJJCDo6CbX3kGWjHf/PuFkhizekRI=; b=itomRHq+xKsarbGrjmiC6p/b73Un8YxJgVJc52RufPpHlr5FzmK6wmwHpzsFZzuktF Y8ceaamS7q5c+WMJB+R1HDDrR8MRbppNg2H98sUcwEvFC+JEy00RDMZD+9lC6vn008z1 /gk0JqphadiR1q2zNKVO/NBGUgwbAsx3yryAkVJS54FHOxE4o8Ful4Aa0/GFVt2UBQh7 0UqnS/HyD0IkjlR5UodSSQ9TwaAjvu4+keEuoKN2Oh5RzEoWp68IsV9QyjnJHQY1XCxc rD+JyoG7PwvLGDwZvxcBtuYRmdGSTj62dxfDeleQ17BGVSLx9U0IMsqX/FfExL0afhzk MrjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701371656; x=1701976456; h=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=cowZkC25AVk1r/aJJCDo6CbX3kGWjHf/PuFkhizekRI=; b=KOi6ZTIpzFgAy/MNKPCld20111CUfJF+mvYqto5LHTm7PWy4Qg95tQ+fNfgpn3CFpa Vz6EFcg4CCcqLQNaPcFKu393igYRZnPHaMwjA/3M5kSd9DZVg/c2BNVQKJtFL/kUuO9g sipavniP9lQPcnSe2OvOHYNa6uhV+sYoMXgLoT0q2zvgnnT0ou99iA+BWJO9nQpjWLxo +f1LpQhM+TAhwOlt0RRKETnOrppAf/ZMYU+GfJFRMM0q9+HS3anzP+vosMKcow2q1bUH C3pCxYfNJ6dQ5yxsgPOUfd3QgORHAsitS+6IeV7Fa5QEBovRGyKQ5V3nRNCvodAkdhYg iksQ== X-Gm-Message-State: AOJu0YwjEN7jydS1drGHXRCSkvdr/E9eg18T5qGYDxr+TqEzlUtBoIvM BAWttUjK4SCR8bYpmknKDEWS0ZdAs2YVtDW0mn/TuYjW X-Google-Smtp-Source: AGHT+IGHjsGrLvt8Q+IBYEcEI61Te+mRIj0n6amIds0Z8HOHMVVd7u1OEPsQChBOjwMRIHLgX1PEw3YJ0efotj4ZvJY= X-Received: by 2002:a17:90b:4d8b:b0:27d:9f6:47a3 with SMTP id oj11-20020a17090b4d8b00b0027d09f647a3mr26400148pjb.31.1701371655916; Thu, 30 Nov 2023 11:14:15 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=owinebar@gmail.com; helo=mail-pj1-x102c.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, HTML_MESSAGE=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:313405 Archived-At: --0000000000002e9359060b6375d0 Content-Type: text/plain; charset="UTF-8" On Mon, Nov 27, 2023, 9:44 PM Richard Stallman wrote: > > > > In particular, what is the reason for the period and inner > > > parenthsses? Why doesn't the code say this? > > > > > > > (`(,hookfun ,start ,end ,collection . ,plist) > > > I would think the author is simply emphasizing that [perse is] parsing > an > > entity in an association list for which hookfun is a key. > > You may well be right about per intensions, and it is possible that a > person who already fully understands what this code is doing would > have realized that immediately. > > But a person who is just starting to look at this code, and reads that > function first, is likely to be impeded in starting to reach that sort > of understanding. > I have to respectfully disagree - dotted pair notation is a pretty fundamental part of LISP syntax, regardless of dialect. There's no reason I'm aware of (for human-written code) for a dotted pair to have a list in the CDR unless the author is emphasizing the pair as being an entry in an association list. Lynn --0000000000002e9359060b6375d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 27, 2023, 9:44 PM Richard Stallman <rms@gnu.org> wrote:

=C2=A0 > > In particular, what is the reason for the period and inner=
=C2=A0 > > parenthsses?=C2=A0 Why doesn't the code say this?


=C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > (`(,hookfun ,s= tart ,end ,collection . ,plist)

=C2=A0 > I would think the author is simply emphasizing that [perse is] = parsing an
=C2=A0 > entity in an association list for which hookfun is a key.

You may well be right about per intensions, and it is possible that a
person who already fully understands what this code is doing would
have realized that immediately.

But a person who is just starting to look at this code, and reads that
function first, is likely to be impeded in starting to reach that sort
of understanding.

<= div dir=3D"auto">I have to respectfully disagree - dotted pair notation is = a pretty fundamental part of LISP syntax, regardless of dialect.=C2=A0 Ther= e's no reason I'm aware of (for human-written code) for a dotted pa= ir to have a list in the CDR unless the author is emphasizing the pair as b= eing an entry in an association list.

Lynn

--0000000000002e9359060b6375d0--