[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] functions for hash tables
From: |
Shiro Kawai |
Subject: |
Re: [Chicken-users] functions for hash tables |
Date: |
Wed, 26 Jan 2005 12:31:19 -1000 (HST) |
I don't know the context of this discussion, but here's some
comparison of APIs, FYI.
http://www.shiro.dreamhost.com/scheme/wiliki/schemexref.cgi/Concept:HashTable
Having optional 'fallback' argument in hash-table-{get|ref} has
also variations; Gauche and STklos take a value, and PLT takes a thunk.
http://www.shiro.dreamhost.com/scheme/wiliki/schemexref.cgi/hash-table-get
--shiro
From: Andreas Rottmann <address@hidden>
Subject: Re: [Chicken-users] functions for hash tables
Date: Wed, 26 Jan 2005 21:30:21 +0100
> address@hidden writes:
>
> > 3.
> > hash-table-ref is called hash-table-get in all other implementations.
> > Gauche has an additional optional argument that specifies what is returned
> > if
> > key is not present - might be a good extension.
> >
> > 4.
> > hash-table-set! is called hash-table-put! in all other implementations.
> >
> I think using -ref and -set! is more in line with the procedure names
> used in R5RS (e.g. vector/string-ref/set!, list-ref).
>
> Rotty
> --
> Andreas Rottmann | address@hidden | address@hidden |
> address@hidden
> http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
> Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
>
> Any technology not indistinguishable from magic is insufficiently advanced.
> -- Terry Pratchett
>
- Re: [Chicken-users] functions for hash tables, (continued)
- Re: [Chicken-users] functions for hash tables, Larry White, 2005/01/26
- Re: [Chicken-users] functions for hash tables, Ed Watkeys, 2005/01/26
- Re: [Chicken-users] functions for hash tables, Ed Watkeys, 2005/01/26
- Re: [Chicken-users] functions for hash tables, Sven . Hartrumpf, 2005/01/27
- Re: [Chicken-users] functions for hash tables, Alex Shinn, 2005/01/27
- Re: [Chicken-users] functions for hash tables, Ed Watkeys, 2005/01/27
- Re: [Chicken-users] functions for hash tables, Benedikt Rosenau, 2005/01/27
- Re: [Chicken-users] functions for hash tables, Alex Shinn, 2005/01/27
- Re: [Chicken-users] functions for hash tables, Alex Shinn, 2005/01/28
Re: [Chicken-users] functions for hash tables, Andreas Rottmann, 2005/01/26
- Re: [Chicken-users] functions for hash tables,
Shiro Kawai <=
Re: [Chicken-users] functions for hash tables, felix winkelmann, 2005/01/27