chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] functions for hash tables


From: felix winkelmann
Subject: Re: [Chicken-users] functions for hash tables
Date: Thu, 27 Jan 2005 21:19:37 +0100

On Wed, 26 Jan 2005 20:41:43 +0100 (CET),
address@hidden <address@hidden>
wrote:
> 
> 1.
> hash-table-update! is missing (although important).

If I understand this correctly, it's hash-table-set! with an update function,
right? Is this really that useful?
(If it is, I'd be happy to add it, but I just don't see the reason).

> 
> 2.
> hash-table-count should be better explained in comparison to hash-table-size.

That's right. I'll try to improve this.

> 
> 3.
> hash-table-ref is called hash-table-get in all other implementations.

Hm, I prefer -ref and -set!.

> Gauche has an additional optional argument that specifies what is returned if
> key is not present - might be a good extension.

Chicken has this.

> 
> 5.
> hash-table-for-each has the hash table as first argument in all other 
> implementations.

Yes, I think that should be changed.

> 
> 6.
> hash-table->list should better be named hash-table->alist or hash-table->... ?

Ok.


cheers,
felix




reply via email to

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