emacs-devel
[Top][All Lists]
Advanced

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

Re: CL package serious deficiencies


From: Stefan Monnier
Subject: Re: CL package serious deficiencies
Date: Sun, 12 Feb 2012 13:15:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

>>>> I much prefer a leaner approach where instead of (delete-if
>>>> #'foo :key #'bar) you have to write (delete-if (lambda (x) (foo (bar
>>>> x)))).
>>> This transformation can be done automatically by a compiler-macro.
>> Not sure what you mean by "automatically", here.  Do you mean "without
>> prompting the user to do the transformation by hand"?
> Yes.

That's the expected behavior of a compiler-macro, so really what you're
saying is that "This transformation can be done by a compiler-macro",
but the problem remains: you have to write the compiler-macro by hand,
and the function still has to handle the :key argument anyway, in case
the compiler-macro can't do its job.


        Stefan



reply via email to

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