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 04:46:30 -0400

On 5/19/05, felix winkelmann <address@hidden> wrote:
> On 5/19/05, Michele Simionato <address@hidden> wrote:
> >
> > Yes, this is what I am doing now, but it is ugly, too low-level for my 
> > taste.
> 
> No, it's perfectly fine... ;-)
> 
> > Felix, I give you an ultimatum: or you raise an exception,
> > or you give me a hash-table-has-key? function! ;-)
> >
> 
> okok...
> 

I am thinking of hash-tables containing booleans, for instance users
with a given permission, and I want to know if the user is in the table or
not. Perhaps the negative version "hash-table-missing-key?" is more useful
than the positive version "hash-table-has-key?", since tipically I want
to raise an error if the key is missing.

             Michele




reply via email to

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