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

Stelian Ionescu sionescu at cddr.org
Thu Apr 26 09:06:40 UTC 2012


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)

-- 
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
http://common-lisp.net/project/iolib

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20120426/25c8cd61/attachment.sig>


More information about the alexandria-devel mailing list