chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] hash-table with missing keys


From: Michele Simionato
Subject: Re: [Chicken-users] hash-table with missing keys
Date: Thu, 19 May 2005 03:58:44 -0400

On 5/18/05, felix winkelmann <address@hidden> wrote:
> 
>  -- procedure: hash-table-ref
>           (hash-table-ref HASH-TABLE KEY [DEFAULT])
>      Returns the entry in the given hash-table under `KEY'. If no entry
>      is stored in the table, `DEFAULT' is returned, or `#f' if
>      `DEFAULT' is not given.
> 
> 
> cheers,
> felix

You misunderstood Felix. The question is

"""
what's the rationale for

(hash-table-ref h 'non-existing-key)

returning #f instead of an error? 
"""

Returning #f is ambiguous, it could mean that the key exists with value #f!


     Michele Simionato




reply via email to

[Prev in Thread] Current Thread [Next in Thread]