guile-devel
[Top][All Lists]
Advanced

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

Re: when to #:replace


From: Andy Wingo
Subject: Re: when to #:replace
Date: Mon, 21 Jun 2010 21:33:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

On Sun 20 Jun 2010 23:29, address@hidden (Ludovic Courtès) writes:

> Hi!
>
> Andy Wingo <address@hidden> writes:
>
>>   A: #:replace. Presumably the user knows what she is doing when she
>>   uses your module. If she really cares she can change the duplicate
>>   bindings resolution mechanism to disallow such imports.
>
> +1

I'm glad you agree :)

> But...
[...]
>         SRFI-19, on the other hand, exports its own version of
>         `current-time' (*note SRFI-19 Time::) which is not compatible
>         with the core `current-time' function (*note Time::).
>         Therefore, SRFI-19 does not use `#:replace'.

But, srfi-1 uses #:replace for `list-index'. Though perhaps that isn't a
good example, as I've been bitten by it many times...

> According to your rationale, SRFI-19 would #:replace ‘current-time’.

Yes I think it should, and likewise with SRFI-69.

Andy
-- 
http://wingolog.org/



reply via email to

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