[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 09:50:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Richard Shann <address@hidden> writes:
> On Sun, 2015-03-22 at 08:01 +0100, David Kastrup wrote:
>> "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
>
> I guess you meant evaluated here???
Whoever was sitting at my keyboard better would have meant "evaluated".
>> 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