[Top][All Lists]
[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
- [Chicken-users] hash-table with missing keys, Michele Simionato, 2005/05/18
- Re: [Chicken-users] hash-table with missing keys, felix winkelmann, 2005/05/18
- Re: [Chicken-users] hash-table with missing keys,
Michele Simionato <=
- Re: [Chicken-users] hash-table with missing keys, felix winkelmann, 2005/05/19
- Re: [Chicken-users] hash-table with missing keys, Michele Simionato, 2005/05/19
- Re: [Chicken-users] hash-table with missing keys, felix winkelmann, 2005/05/19
- Re: [Chicken-users] hash-table with missing keys, Michele Simionato, 2005/05/19
- Re: [Chicken-users] hash-table with missing keys, F. Wittenberger, 2005/05/19
- Re: [Chicken-users] hash-table with missing keys, Alex Shinn, 2005/05/19