unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-devel@gnu.org
Subject: Re: rfc: (ice-9 accumulate)
Date: Mon, 11 Jan 2010 15:34:58 +0100	[thread overview]
Message-ID: <876378iub1.fsf@ambire.localdomain> (raw)
In-Reply-To: <87fx6cdb6x.fsf@gnu.org> ("Ludovic Courtès"'s message of "Mon, 11 Jan 2010 14:26:46 +0100")

() ludo@gnu.org (Ludovic Courtès)
() Mon, 11 Jan 2010 14:26:46 +0100

   Would be nice, though I think it should be decided on a per-module
   basis.  There are some modules that it may be worth deprecating and
   leaving undocumented, perhaps.

Certainly each module will have it's own doc patch.

However, i strongly discourage leaving things undocumented.  For some,
undocumented might mean "don't use".  For others (who peruse source
code), it might mean "implementation so stable, it's self-documenting".

Better to be explicit: If you want to deprecate something, the
documentation is ALSO a good place to make that clear.

Another benefit to documenting stuff that you want to deprecate is that
the sifting process may reveal bits or techniques you want to keep.

   >    Besides, the first idiom at [0] is about as concise as the one
   >    that uses this API; in addition, it is likely to be more widely
   >    understood than the latter.  This makes this API unappealing to
   >    me.
   >
   > I'm sorry, i don't follow.  What are you referring to as "the latter"?

   The ‘accumulate’ API doesn’t lead to more concise code, but it leads to
   “non-standard” code, which makes it unappealing to me.

I can understand this point somewhat (what is unfamiliar often seems
non-standard).  However, i still fail to understand your sentence above;
do you mean "the latter" == "(ice-9 accumulate)"?

In any case, the API does indeed lead to more concise code, if the
original code that it replaces is `cons' plus `reverse!'.  But that's
neither here nor there...

   > Hmmm, would it be possible to install (ice-9 accumulate) as is, w/o
   > changes, somewhere under ${prefix}/share/guile (perhaps a site/ dir)?
   > Would Guile be able to locate and load it?

   Setting $GUILE_LOAD_PATH and $GUILE_LOAD_COMPILED_PATH appropriately
   should be enough.

OK, i'll give moving the module to ttn-do a try.

thi




  reply	other threads:[~2010-01-11 14:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-09 10:44 rfc: (ice-9 accumulate) Thien-Thi Nguyen
2010-01-09 21:55 ` Andy Wingo
2010-01-11  6:05   ` Thien-Thi Nguyen
2010-01-11 13:21     ` Ludovic Courtès
2010-01-11 14:16       ` Thien-Thi Nguyen
2010-01-11 20:57       ` Andy Wingo
2010-01-11  0:48 ` Ludovic Courtès
2010-01-11  5:51   ` Thien-Thi Nguyen
2010-01-11 13:26     ` Ludovic Courtès
2010-01-11 14:34       ` Thien-Thi Nguyen [this message]
2010-01-11 20:51       ` Andy Wingo

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=876378iub1.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --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).