[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hash-get-handle and hash-ref redundant
From: |
Jon Wilson |
Subject: |
hash-get-handle and hash-ref redundant |
Date: |
Fri, 29 Jun 2007 16:49:59 -0400 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070604) |
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
- hash-get-handle and hash-ref redundant,
Jon Wilson <=