Joe Marshall wrote:in context of macroexpansion: of course it is.
> ilias <at_n...@pontos.net> writes:
>>,',long is the same as ,long
>>,' evaluates to 'nothing' so you can simply drop it.of course it is.
> Nor is this.
>> (defmacro abbrev (short long)simply correct.
>> `(defmacro ,short (&rest args)
>> `(,long ,@args)))
>>looks easier now.
> (defmacro abbrev1 (short long)oh.
> `(defmacro ,short (&rest args)
> `(,',long ,@args)))
> (defmacro abbrev2 (short long)
> (abbrev1 nice-and-short horrendously-long)
> (macroexpand '(nice-and-short a b c)) => (horrendously-long a b c)
> (abbrev2 shorter even-more-horrendously-long)
> (macroexpand '(shorter a b c))
i'm a lisp-novice.
this function is new to me.
i'll use it.
btw: The LISP you use seems to be *not* conforming to the ANSI Standard.
Cause ANSI-Conforming Common Lisp must execute this code.
> I only mention this because there just *might* be newbies stillHave you broken an agreement? you sound like this.
> reading these and I don't want them to become confused.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.