unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] SRFI-34, SRFI-60 and core bindings
Date: Wed, 07 Dec 2005 11:10:51 +0100	[thread overview]
Message-ID: <87r78pxln8.fsf@laas.fr> (raw)
In-Reply-To: <871x0p4xpf.fsf@zagadka.de> (Marius Vollmer's message of "Wed, 07 Dec 2005 01:23:08 +0200")

Marius Vollmer <mvo@zagadka.de> writes:

> These two 'raise' funtions are very different: one raises a Unix
> signal, the other raises an exception.  So I'd say the warning is OK.

[...]

> The same is true for 'bit-count' as Kevin pointed out. 

I agree that these are way different functions, but I disagree about the
remedy.  You say that a warning is fine precisely because these are
different functions.  I say that I rarely type something like
`(use-modules (srfi srfi-60))' _inadvertently_ in a Scheme file.
Additionally, the _documentation_ of that module already warned me about
the introduction of a different `bit-count' procedure, so if something
goes wrong, it's all my fault.  ;-)

See also:
http://lists.gnu.org/archive/html/guile-devel/2005-10/msg00101.html .

> If you don't want to warning, you can define your own way of handling
> duplicates.  See the NEWS file for docs about the options.

Precisely, you said you were ok to apply the following documentation
yesterday:

  This is useful for modules that export bindings that have the same
  name as core bindings.  @code{#:replace}, in a sense, lets Guile know
  that the module @emph{purposefully} replaces a core binding.  It is
  important to note, however, that this binding replacement is confined
  to the name space of the module user.  In other words, the value of the
  core binding in question remains unchanged for other modules.

So, do we agree on what `#:replace' is for?  :-)

As a matter of fact, this facility had remained undocumented for years
and its original author is no longer here (I think) to explain the
rationale behind it.

Thanks,
Ludovic.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2005-12-07 10:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20 13:09 [PATCH] SRFI-34, SRFI-60 and core bindings Ludovic Courtès
2005-10-20 19:42 ` Kevin Ryde
2005-10-21  7:52   ` Ludovic Courtès
2005-10-21 20:36     ` Kevin Ryde
2005-10-24  8:10       ` Ludovic Courtès
2005-12-06 23:23 ` Marius Vollmer
2005-12-07 10:10   ` Ludovic Courtès [this message]
2005-12-13 21:55     ` Marius Vollmer
2005-12-14 10:13       ` Ludovic Courtès
2005-12-28 20:14         ` Neil Jerram
2006-01-03 10:06           ` 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=87r78pxln8.fsf@laas.fr \
    --to=ludovic.courtes@laas.fr \
    --cc=guile-devel@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).