help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible for a macro to expand to nothing?


From: Alan Mackenzie
Subject: Re: Is it possible for a macro to expand to nothing?
Date: Fri, 27 Nov 2009 13:15:07 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386))

Kevin Rodgers <address@hidden> wrote:
> Alan Mackenzie wrote:

>> Your notion of the correct use of macros seems to be a religious idea
>> rather than one fully thought through.  You justify it with circular
>> reasoning.  Whilst using a macro to generate an evalable form may be
>> the most usual thing, there is no reason not to use it to produce
>> other list structure.

> Except that such macros can only be executed in a particular context
> i.e.  they depend on something that cannot be expressed via their
> argument list.

Yes, many lisp structures can only be "executed" in particular contexts,
`,@' for example, yet nobody slags them off for that.


> At best that is poor style, and at worst it is poor engineering.

That is so supercilious - you haven't even given an example of this
phenomenom, discussing why it is poor style or poor engineering.  There's
just this vague insinuation that you know better.

I will give an example, namely `c-lang-defconst' from cc-defs.el.  Are
you going to assert that it is poor style, or even poor engineering,
simply because it generates an internal data structure rather than an
excutable form?  If so, then it's up to you to say how it could have been
done better, preferably submitting a patch.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]