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: Distinguishing `consp` and `functionp` Date: Tue, 30 Jan 2024 00:09:11 +0700 Message-ID: References: <86msssble8.fsf@gnu.org> <86bk9448ai.fsf@gnu.org> <864jew40m3.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="25934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 29 18:10:26 2024 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 1rUV9M-0006Od-SQ for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Jan 2024 18:10:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUV8T-00021J-JK; Mon, 29 Jan 2024 12:09:29 -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 1rUV8Q-000217-Q3 for emacs-devel@gnu.org; Mon, 29 Jan 2024 12:09:26 -0500 Original-Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUV8P-0000Vk-Bf; Mon, 29 Jan 2024 12:09:26 -0500 Original-Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5ffe7e7b7b3so29436847b3.3; Mon, 29 Jan 2024 09:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706548163; x=1707152963; 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=Wbg0ZrzslV54rOEsk7BhzbqMH9ctGvELsQdexKXSVZ0=; b=jLRaxuO1MrFW6fdp0TsFbHrB5hQ7qG0ZbU6oN7tCIlQhj1ZfPp6+ymBgGrQBGQifY2 k9gFzHJjNlFY5jV7/2jqb2wtJTZGqO+xp5UeqL/3KB6a+haSkUWQlxWA+GpQE1+QDgQH jnIFoLO9y351kjjioJAym5mfueYazlJa9EA/1R8R2GPP3SLngweHbEI74Q6W1VRv3Kwa ezuljHS5oSb/STLc20OS7gjJ/P9MRLC0YfPVgzxNPpZnfCJlMHWe6TZSyNQ5HjkOk6Cb A63MBa2FipcCKqzloWJMGcQTJUWDr6Q6r2dDtJWTgWWHqfsFPUAL2xB6aW5knRWycmRO FJ8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706548163; x=1707152963; 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=Wbg0ZrzslV54rOEsk7BhzbqMH9ctGvELsQdexKXSVZ0=; b=WsmWK9VBEgxr0ZU4I9G2G9QCuATITGuSa3WeXtLIVuMwILpBVWt16sm5lgLnI3pwwS j+83FNpkyVSd86+C7Kuk+x3QuYvCzdcyhBo8/qQEOfGgDLV0EJi5JDKd4h3cW+cbPi0y qTKC59AYr9swFG2AsSzOIPyHUqzjxyAcyuXiRc7BZbsbn5h78jFlBbG1HQKQUtPsN1z2 cnzXQF68W4cSRl/BxKXryNO5BGFIm3XLtmWu87YatRrZ6fmgTdSTvC6tq61mNUBZSVWq 8NVAjjmkpL934Naf8xm1Tiakb2eLbkRIOgEX7uBgetwUO8jLnun6BaxOOBV8Xsur+Mt5 uV3w== X-Gm-Message-State: AOJu0YwQbR2FlM+Az3+94/ofCpQNdN3jAiSFKCJPrAmddA4bWklU2aAA 1FfhA6Id6uF5Yl8RG+4eRzFYzLnWXu6smXgkDVgF3zOyJS/GXKkauJy0X19q/CltWFuP8jaIgvW PJUPGb8sCrzKyKEVCNlGzflOVT4SLhtj8 X-Google-Smtp-Source: AGHT+IFVjvXhiR6/sMlwirZ9k37CHmQDPI39rS9IuxRyOPekv0IYkdX0qL3ojvQqE4JsGFrlKFofrbQygQ6W5n91grU= X-Received: by 2002:a81:ad5b:0:b0:5f8:f50e:bcf9 with SMTP id l27-20020a81ad5b000000b005f8f50ebcf9mr4041764ywk.20.1706548163301; Mon, 29 Jan 2024 09:09:23 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1132; envelope-from=yurivkhan@gmail.com; helo=mail-yw1-x1132.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:315604 Archived-At: On Mon, 29 Jan 2024 at 23:50, Stefan Monnier wro= te: > Beside taste and philosophical differences, the main motivation is to > make `consp` and `functionp` mutually exclusive so as to eliminate the > risk that a list be considered mistakenly as a function or vice versa. > > I mentioned that this risk of confusion is the reason why our completion > functions do not officially support completion tables represented as > lists of symbols (even though in practice they work fine (except when > the first symbol happens to be `lambda` or `closure`)). A backward-compatible solution for =E2=80=9CI want to support lists but the= re are already things that have the list shape, with a special symbol at the head=E2=80=9D is to designate a new special symbol, maybe =E2=80=98list= =E2=80=99, to be used at the head (and ignored except as the type designator). (Disclaimer: I am not qualified to have an opinion as to whether functions-as-lists should continue to be supported.)