chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] one more egg - need advice how wrt. exports


From: Jörg F. Wittenberger
Subject: [Chicken-users] one more egg - need advice how wrt. exports
Date: Tue, 03 Nov 2015 21:29:44 +0100
User-agent: Mozilla/5.0 (X11; Linux armv7l; rv:31.0) Gecko/20100101 Icedove/31.7.0

Here is one more egg:

http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/srfi-101.release-info

This simply slaps a module/egg around srfi-101 "Purely Functional
Random-Access Pairs and Lists".

However I'm not yet confident that the way I'm handling exports is the
right thing to do.

Firstly I have not found a way to rename identifiers on export (as in
r6rs libraries).  Is there really no way or did I miss it?

Right now the egg contains two modules "srfi-101-ra" and "srfi-101".
The former exports all identifiers with the "ra:" prefix.  The latter is
only there to strip the prefix.

But if one simply does "(use srfi-101)" this behaves confusing.  It's a
bit hard to make sure "car", "map" etc. are what you expect when mixing
srfi-101 lists and native lists.

Should I rather not export anything from the "srfi-101" module and
require the user to import some (to be written) module?  Or is there a
better(TM) way?

Otherwise it may be ready to be added to the eggs listing too.

Thanks

/Jörg



reply via email to

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