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: Distinguishing `consp` and `functionp` Date: Sat, 27 Jan 2024 11:47:55 +0000 Message-ID: References: <86msssble8.fsf@gnu.org> <87h6iz39s1.fsf@daniel-mendler.de> 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="19748"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Eli Zaretskii , emacs-devel To: Daniel Mendler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 27 12:48:37 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 1rThAr-0004zN-HX for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jan 2024 12:48:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rThAS-0004Rs-Ux; Sat, 27 Jan 2024 06:48:12 -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 1rThAS-0004RV-0R for emacs-devel@gnu.org; Sat, 27 Jan 2024 06:48:12 -0500 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rThAQ-0002NB-Ar; Sat, 27 Jan 2024 06:48:11 -0500 Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-51030ce36fbso319047e87.3; Sat, 27 Jan 2024 03:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706356088; x=1706960888; 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=KLWgOrYZY275dBSKp7PAQ8h2xketQ3ILvI7S9+1X4Ms=; b=b/iC8b2QY2ycKiJIbAPp3snXv0/MEBTo0r2Kl6+tKt4DwZWhQIae/DF0HHfoehIMzZ b4u7E4JTs9PdCbUZDgTHk9KqAlvBqTvroV4c4mHV6bV0R2XmnILcYD9RS/fzzTuhBSMQ Q5K8FhfZ51DR9qm2BPnrVxqmhqQ1SfmljPggTOtVSOLVqOvJh9tcEnNZHG6NfHWOVHTz 9sNhut5guxlKHA6gLsSm0bytHV5R1LI0chyX2FUokWXlBz9S13zrtE8sK9ABiEmk8XPv hgpI1tpHrU3SgYHNlFsMGbalRXGbc5CD4ezooxeKR0nshuSAdiRfzGveob9vfJwDin7I xHvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706356088; x=1706960888; 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=KLWgOrYZY275dBSKp7PAQ8h2xketQ3ILvI7S9+1X4Ms=; b=vnCyIJBo4zPuHIr2e8NXog0UzFQefFQ4GQevTD+mqYtdP499EBqiu3LBMHK48Q1vh+ gZxL0wl6xb3WhF4/1ZZaLJb2W3qydUK1vNaOkrVIHUizAZhWVqHQTazl0lP8bxlyUxJ0 cFUJ1WOswOkel9mtzh0WnuJ5RXUto7BQPhaqKZq000/O4FmSY2Dn0LNqlU4qtY09cZ0u sWoMuudpRColEN2rKkr8OPqDisGdMs8+noUwfNTOisJUvYFnB6Lc1jIk97nsUO2G33B1 QMxg0dP/ug192+wuMi5H0pEQD1zCxmlVPFq4Pg7wOxksIZDI4iZoPBBto9dedl2diMHj 5vWw== X-Gm-Message-State: AOJu0Yy7pdReMkKIx4ZCxobGQo+u50jsMWiCMunBqveW6Tk+dnBMHfuH 37ykewLU9Tbrpij0f0Rq+khe5ox397/f+m/ojR3LKfFsS+zVitS94xB7Pr141Ws2YpMEeXKOtev 8Mfbktf17xoxgywFkxwgOQ4nGBXw= X-Google-Smtp-Source: AGHT+IHREmDfDZG27lfhNKsaeDcHkjPaiYLuqpqysz8df+STTCt1T8gjJYksI1Pfz7DsKyHPgxrKY4OczdkjaJpI1aQ= X-Received: by 2002:a05:6512:12d1:b0:510:f47:8d82 with SMTP id p17-20020a05651212d100b005100f478d82mr941959lfg.22.1706356087854; Sat, 27 Jan 2024 03:48:07 -0800 (PST) In-Reply-To: <87h6iz39s1.fsf@daniel-mendler.de> Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x130.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:315479 Archived-At: On Sat, Jan 27, 2024 at 12:22=E2=80=AFAM Daniel Mendler wrote: > What about only dropping the list-based closure representation as a > first step, switching it over to a vector-based one? > > (functionp '(closure (t) nil t)) =3D> nil (currently t) > (funcall '(closure (t) nil t)) =3D> error (currently t) +1 to this. But not a vector, which can also be spoofed, but a record (aka vectorlike). Jo=C3=A3o