[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building identifiers algorithmically
From: |
David Kastrup |
Subject: |
Re: Building identifiers algorithmically |
Date: |
Sun, 22 Mar 2015 08:01:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
"Trevor Daniels" <address@hidden> writes:
> Now while this works it seems rather clunky, so I'm wondering if there
> is a more elegant way of doing this. Symbols look like they might
> help, but so far I've failed to make anything work. I've also failed
> with macros, but that's likely because I don't understand them yet.
When a function is evaluated, its arguments are read, evaluated, and the
function is called with the unevaluated arguments, and the result of
that call is used.
When a macro is evaluated, its arguments are read, the macro is called
with the unevaluated arguments, and the result of that call is
evaluated before use.
It's just a matter of where the evaluation happens. With a function, it
is before the call, with a macro, it is after the call. That's all
there is to it.
--
David Kastrup