[alexandria-devel] DESTRUCTURE-CLAUSES - alexandria_destruct#9CF676.diff (1/1)

Tobias C Rittweiler tcr at freebits.de
Thu Apr 26 09:16:51 UTC 2012


In article <1335431200.3991.0.camel at cathai>,
 Stelian Ionescu <sionescu at cddr.org> wrote:

> On Thu, 2012-04-26 at 11:41 +0300, Nikodemus Siivola wrote:
> > On 25 April 2012 16:47, Tobias C Rittweiler <tcr at freebits.de> wrote:
> > 
> > > I was pleased to discover that DESTRUCTURING-CASE made it into
> > > Alexandria meanwhile. Very nice! This allows me to share the
> > > little gem that I'm attaching with this posting. It's a handy
> > > macro to make writing macros like DEFPACKAGE, DEFGENERIC of
> > > DEFREADTABLE easy like a breeze.
> > 
> > Nice!
> > 
> > Unless I misread this, duplicate clauses cause the earlier one to be
> > discarded? Signaling an error instead might be better, though a fairly
> > common pattern might also be served by special casing clauses of the
> > form
> > 
> >   (:keyword &append stuff)
> > 
> > or something like that, which would cause duplicate clauses to have
> > their contents merged.
> 
> Exactly: CL:DEFPACKAGE allows repeated :export clauses and requires them
> to be merged(appended)

Ah, true. I forgot about that. That answers my question in the other 
mail.

T





More information about the alexandria-devel mailing list