This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SRFI-13


* Per Bothner [2009-08-14 00:22+0200] writes:

> On 08/12/2009 09:19 AM, Dan Stanger wrote:
>> Would it be possible to add srfi-13 to slib?
>> Using the current svn, I was able to compile and use the
>> reference implementation at the following location:
>
> srfi-13 is a little tricky.  One problem is that it extends
> standard R5RS/R6RS functions - what is the right thing
> in that case?  Override the standard functions when SRFI-13
> is required/imported?  Or extend the standard function by default?

If we want to follow R6RS culture we shouldn't allow importing two
different bindings with the same name and instead force the user to
rename the conflicting imports.  For the string library that would
probably mean that it would be used most of the time with "only" imports
like:

(import (only (srfi strings) string-prefix?))

Which doesn't look so bad.

Helmut


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]