From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jon Wilson Newsgroups: gmane.lisp.guile.user Subject: hash-get-handle and hash-ref redundant Date: Fri, 29 Jun 2007 16:49:59 -0400 Message-ID: <46857077.7080808@fastmail.fm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1183150306 20126 80.91.229.12 (29 Jun 2007 20:51:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2007 20:51:46 +0000 (UTC) To: Guile Users Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jun 29 22:51:45 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I4NRQ-0002qO-6i for guile-user@m.gmane.org; Fri, 29 Jun 2007 22:51:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4NRP-0008CK-NZ for guile-user@m.gmane.org; Fri, 29 Jun 2007 16:51:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4NR3-00082F-2W for guile-user@gnu.org; Fri, 29 Jun 2007 16:51:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4NQz-00080s-Fe for guile-user@gnu.org; Fri, 29 Jun 2007 16:51:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4NQz-00080n-AT for guile-user@gnu.org; Fri, 29 Jun 2007 16:51:17 -0400 Original-Received: from mailgw2.fnal.gov ([131.225.111.12]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I4NQy-0001vo-V7 for guile-user@gnu.org; Fri, 29 Jun 2007 16:51:17 -0400 Original-Received: from mailav1.fnal.gov (mailav1.fnal.gov [131.225.111.18]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0JKF000BB0IWTW@mailgw2.fnal.gov> for guile-user@gnu.org; Fri, 29 Jun 2007 15:50:00 -0500 (CDT) Original-Received: from mailgw2.fnal.gov ([131.225.111.12]) by mailav1.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2007062915500027487 for ; Fri, 29 Jun 2007 15:50:00 -0500 Original-Received: from conversion-daemon.mailgw2.fnal.gov by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0JKF001010AIXD@mailgw2.fnal.gov> (original mail from j85wilson@fastmail.fm) for guile-user@gnu.org; Fri, 29 Jun 2007 15:50:00 -0500 (CDT) Original-Received: from [71.79.110.56] (cpe-71-79-110-56.columbus.res.rr.com [71.79.110.56]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTPA id <0JKF000C30JBV4@mailgw2.fnal.gov> for guile-user@gnu.org; Fri, 29 Jun 2007 15:50:00 -0500 (CDT) User-Agent: Thunderbird 1.5.0.12 (X11/20070604) X-detected-kernel: Solaris 9 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6011 Archived-At: 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