From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: defmacro with built-in gensym declaration and initialization Date: Thu, 21 Jan 2021 15:50:12 -0500 Message-ID: References: <87bldk6n2l.fsf@gmail.com> <87turbiuvr.fsf@tcd.ie> <878s8n76ih.fsf@gmail.com> <87o8hj9vl9.fsf@tcd.ie> <875z3q6q51.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31738"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , emacs-devel@gnu.org To: akater Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 21 21:52:29 2021 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 1l2gwO-00089d-MY for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Jan 2021 21:52:28 +0100 Original-Received: from localhost ([::1]:54148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2gwN-0007bV-Np for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Jan 2021 15:52:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2guJ-0005kf-Hr for emacs-devel@gnu.org; Thu, 21 Jan 2021 15:50:19 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2guH-0000rQ-E9 for emacs-devel@gnu.org; Thu, 21 Jan 2021 15:50:18 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 33929101161; Thu, 21 Jan 2021 15:50:15 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DB29F100062; Thu, 21 Jan 2021 15:50:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1611262213; bh=nTu+lbs2JwxYwM2gM5w1FwbIdreYZZkuQy2SEBNNz5Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fR8OYFnLi4u3HbcxxvjK4ucu5OX/7yaF/ZbXK9ycGrvFsYpsUUxsUFpLySK9/eznX wOeFEEJTdPfHU2fmUZfCmgDUZwH+4oaHHUBTCGd6F1AlKRAbg5kH8AMK+fQEXtXMBv oIB9JU+gHOPCAm/fKFg2zk2ZfBZSD5hovOWcklzoGEpdAP1IBCSvti0rDnXby7wfZA I3J8bhxuFakfz0CrM6DE18CCBQOY0npXYqfeAZuqHZo/X6MnhLrRYjrP+k7D+UICNt NeV4LvRwCD+Vn9Nq25c5MbXMlobqaDmmYURJMRo08IIJzqpa5jhu/irYHqhRc1iAxY XFyeR3lo0IuGA== Original-Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6DA4E12010E; Thu, 21 Jan 2021 15:50:13 -0500 (EST) In-Reply-To: <875z3q6q51.fsf@gmail.com> (akater's message of "Thu, 21 Jan 2021 19:34:02 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:263253 Archived-At: > What's the purpose of TEST in macroexp-let2, then, other than to > minimise bindings in the expansion? The purpose is indeed just one of optimization applied to the source code. > (Which I presume is only relevant when Elisp's byte compiler is used > to compile the expanded form.) It's relevant both when the code is byte-compiled and when it's interpreted. But that depends on implementation details, so indeed it can become useless in the future if/when we improve the interpreter and/or compiler. I don't know if it's still relevant when using the native compiler, indeed. Stefan