bug-guile
[Top][All Lists]
Advanced

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

Re: 1.8.2 srfi-19 warns about current-time


From: Ludovic Courtès
Subject: Re: 1.8.2 srfi-19 warns about current-time
Date: Tue, 09 Oct 2007 23:22:32 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

Gregory Marton <address@hidden> writes:

> On Mon, 8 Oct 2007, Ludovic Courtès wrote:

>> You can insert the following line at the beginning of your program:
>>
>>  (default-duplicate-binding-handler 'last)
>
> This affects all bindings, not just the ones I no longer want to be
> warned about.

Yes.

> resolve-module finds the module with the given name and returns it.
> http://gnu.rtin.bz/software/guile/docs/docs-1.8/guile-ref/Module-System-Reflection.html
>
> module-replace! forces the list of symbols in its second argument to
> be put into the :replace list?
>   (could not find documentation)

Correct.  It's not documented (yet).

> What's the risk, besides unwittingly using srfi-19's current-time when
> I wanted to use the core current-time?

The risk is that you're using undocumented features that might change or
vanish someday.

Note that using `:renamer' as Jon suggested is more "future-proof",
albeit slightly less convenient.

> As a question outside the scope of this conversation, why does srfi-19
> not use time-monotonic to mean what the core current-time means, and
> make that default instead of utc?

Because the argument to SRFI-19 `current-time' defaults to `time-utc',
and we can't change it.  :-)

Thanks,
Ludovic.





reply via email to

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