unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Van L <van@scratch.space>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Proposing "alist" macro
Date: Wed, 5 Sep 2018 10:05:10 -0400	[thread overview]
Message-ID: <CAM-tV-_MF11F05TP0XEbJW+90xiAt7CzpYDbVX_35p0YUDfPPQ@mail.gmail.com> (raw)
In-Reply-To: <7531E0F4-C530-4DA1-9E24-069234BE84C8@scratch.space>

On 5 September 2018 at 09:16, Van L <van@scratch.space> 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.



  reply	other threads:[~2018-09-05 14:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-18  1:57 Proposing "alist" macro Adam Porter
2018-08-21 15:45 ` Clément Pit-Claudel
2018-09-05 12:41   ` Van L
2018-09-05 13:06     ` Noam Postavsky
2018-09-05 13:16       ` Van L
2018-09-05 14:05         ` Noam Postavsky [this message]
2018-09-06  5:52       ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-tV-_MF11F05TP0XEbJW+90xiAt7CzpYDbVX_35p0YUDfPPQ@mail.gmail.com \
    --to=npostavs@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=van@scratch.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).