unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jon Wilson <j85wilson@fastmail.fm>
To: Guile Users <guile-user@gnu.org>
Subject: hash-get-handle and hash-ref redundant
Date: Fri, 29 Jun 2007 16:49:59 -0400	[thread overview]
Message-ID: <46857077.7080808@fastmail.fm> (raw)

Hi,
The procedure hash-get-handle seems to be a less useful version of hash-ref.

guile> (help hash-get-handle )
`hash-get-handle' is a primitive procedure in the (guile) module.

 -- Scheme Procedure: hash-get-handle table key
     This procedure returns the `(key . value)' pair from the hash
     table TABLE.  If TABLE does not hold an associated value for KEY,
     `#f' is returned.  Uses `equal?' for equality testing.

guile> (help hash-ref)
`hash-ref' is a primitive procedure in the (guile) module.

 -- Scheme Procedure: hash-ref table key [dflt]
     Look up KEY in the hash table TABLE, and return the value (if any)
     associated with it.  If KEY is not found, return DEFAULT (or `#f'
     if no DEFAULT argument is supplied).  Uses `equal?' for equality
     testing.

Perhaps one is meant to be used only internally?  I'm guessing that 
hash-get-handle should not be visible.  If the developers concur, let's 
make this change before 1.8.2.
Regards,
Jon


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


             reply	other threads:[~2007-06-29 20:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-29 20:49 Jon Wilson [this message]
2007-06-30  3:16 ` hash-get-handle and hash-ref redundant Stephen Compall
2007-06-30  3:21   ` Jon Wilson

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=46857077.7080808@fastmail.fm \
    --to=j85wilson@fastmail.fm \
    --cc=guile-user@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).