From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Proposing "alist" macro Date: Wed, 5 Sep 2018 10:05:10 -0400 Message-ID: References: <8b69f75f-0c5d-df4c-6e6f-cc02d5bf4ba9@gmail.com> <7531E0F4-C530-4DA1-9E24-069234BE84C8@scratch.space> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1536156232 6762 195.159.176.226 (5 Sep 2018 14:03:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2018 14:03:52 +0000 (UTC) Cc: Emacs-Devel devel To: Van L Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 16:03:48 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxYPM-0001fA-4P for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2018 16:03:48 +0200 Original-Received: from localhost ([::1]:56373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxYRS-0004f4-08 for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2018 10:05:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxYQl-0004ex-RH for emacs-devel@gnu.org; Wed, 05 Sep 2018 10:05:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxYQk-0001KM-7d for emacs-devel@gnu.org; Wed, 05 Sep 2018 10:05:15 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:44471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxYQi-0001JD-35 for emacs-devel@gnu.org; Wed, 05 Sep 2018 10:05:13 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id l82-v6so13755453oih.11 for ; Wed, 05 Sep 2018 07:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DHZNCunJAfpAdSDILTe4RPcqxapQOsJ59/JksCkbXZ0=; b=VZ7wzl6LdwJQsSg0TbO1XeLI2y5GL2yri3McLbnhvS8LO9mYg7zV2S6kKF+safmJtf LaOCeW05CSEaWK7+VtfpnyyuwjDD5Nfu+RE3Xo6dEXxxaCzfF2gE7PpB7JkTu2yFvLFP prwZVZNXcPKqXhTMaVWqKeOnT8a2lmBndlMkdkA4o+jeMjyqPa4EzwOUSvEXcIsO4iNb Zt5DJ3gPDDpJ5jGvnkUEcvD4W6jc3ylGKFgXmlfLCir2ZHpG1kQLm88bgy9MyLv/Acir uuknPcp6I/PAKLrGQuhONNAKitc8chbLQZEIl+PtnJmOE8NobRXsup/i0KGBZYoAiZ7g dU2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DHZNCunJAfpAdSDILTe4RPcqxapQOsJ59/JksCkbXZ0=; b=Ry3xZ8YENFQQXPAZuLU8IiEy1k0E1f+NT2bFc9g2hrCN6ThkCh01uwVVk8efTBZzt1 xnUN6lX8NHiu3sB13h/7CjCavk0wYGwOxZ3Tb2DM9srMhDTlYUSoF8bsZXT7SZZik4oN TEB902tpW9iHxT8lEBf7ZGSdsZwx8iIqRKItwH402KbJXZqBmDmtQcT4ckdc0FMbCk8s KDmWIGhJKAOMIBWmSR0z6LAfTNoTIvvow3FOvGaOOuHmA9NxH13889biIpmq6fqV8Gb+ OhZNEDOd8ta64s1vVJ6g1na6SFFv4od1Tldm1Y0Z54ajGU9gptk8nO6qD577mIF1Y6Of NF6Q== X-Gm-Message-State: APzg51A7pSFAHLGNNRQSWkXIXflR/pUyVqGSYoR04v5LL1uYhbpBESMC +qDjx7V6EVtCyB2MjP/5XPCVuoGQWdebkzf7iCs= X-Google-Smtp-Source: ANB0VdYt9fehuKKWluAJRSUa5bCpWQPRS1pvFnqX7SMPdE+rzazAfQSKm7TQVVERsKQIiUINHSMTlurB1MCYqVVoNk8= X-Received: by 2002:aca:3a57:: with SMTP id h84-v6mr30439547oia.336.1536156311042; Wed, 05 Sep 2018 07:05:11 -0700 (PDT) Original-Received: by 2002:a9d:540f:0:0:0:0:0 with HTTP; Wed, 5 Sep 2018 07:05:10 -0700 (PDT) In-Reply-To: <7531E0F4-C530-4DA1-9E24-069234BE84C8@scratch.space> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229291 Archived-At: On 5 September 2018 at 09:16, Van L wrote: >>>> LGTM, but couldn't it be a function? >>> >>> A macro does not needlessly eval the args. >> >> The proposed macro expansions do eval all the args. > > The eval occurs after the macro expansion, right? that is why there is the defmacro. Correct, the expressions passed to the macro are evaluated exactly once at runtime. Exactly the same as if it was a defun.