unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: bug-guile@gnu.org
Subject: Re: 1.8.2 srfi-19 warns about current-time
Date: Tue, 09 Oct 2007 23:22:32 +0200	[thread overview]
Message-ID: <87k5pw2dbb.fsf@chbouib.org> (raw)
In-Reply-To: Pine.LNX.4.62.0710081633080.25834@ashmore.csail.mit.edu

Hi,

Gregory Marton <gremio@csail.mit.edu> 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.



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


  parent reply	other threads:[~2007-10-09 21:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05  4:25 1.8.2 srfi-19 warns about current-time Gregory Marton
2007-10-07 16:18 ` Jon Wilson
2007-10-07 17:22   ` Ludovic Courtès
2007-10-08 15:35     ` Gregory Marton
2007-10-08 18:00       ` Ludovic Courtès
2007-10-08 20:51         ` Gregory Marton
2007-10-08 21:34           ` Jon Wilson
2007-10-09 21:22           ` Ludovic Courtès [this message]
2007-10-09 22:38             ` Gregory Marton
2007-10-10 16:10               ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k5pw2dbb.fsf@chbouib.org \
    --to=ludo@gnu.org \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).