SRFI 69 update David Van Horn (30 Aug 2005 20:56 UTC)
Re: SRFI 69 update Tony Garnock-Jones (30 Aug 2005 23:19 UTC)
hash-table-*/default (Re: SRFI 69 update) Panu Kalliokoski (31 Aug 2005 07:56 UTC)
Re: hash-table-*/default (Re: SRFI 69 update) Tony Garnock-Jones (31 Aug 2005 08:36 UTC)
Re: hash-table-*/default (Re: SRFI 69 update) Panu Kalliokoski (31 Aug 2005 12:44 UTC)
Re: hash-table-*/default (Re: SRFI 69 update) Tony Garnock-Jones (31 Aug 2005 19:30 UTC)
Re: hash-table-*/default (Re: SRFI 69 update) Panu Kalliokoski (01 Sep 2005 05:49 UTC)

hash-table-*/default (Re: SRFI 69 update) Panu Kalliokoski 31 Aug 2005 07:55 UTC

On Wed, Aug 31, 2005 at 12:18:55AM +0100, Tony Garnock-Jones wrote:
> [proposed text]
>   Procedure: hash-table-ref/default hash-table key default -> value
>
>   Behaves as if defined by
>   (define (hash-table-ref/default ht key default-value)
>     (hash-table-ref ht key (lambda () default-value)))
> [end proposed text]

How about "behaves as if it evaluates to"?

By the way, I got no comments to the suggestion that there would be
hash-table-ref* or hash-table-ref/thunk with the current behaviour of
hash-table-ref, and a _macro_ hash-table-ref that expands to the
lambda-wrapped version.  It this alternative, saying hash-table-ref
would really be equivalent (linguistically equivalent, not value
equivalent) to the lambda-wrapped version.

Panu

--
personal contact: xxxxxx@iki.fi, +35841 5323835, +3589 85619369
work contact: xxxxxx@helsinki.fi, +35850 3678003
kotisivu (henkkoht):	http://www.iki.fi/atehwa/
homepage (technical):	http://sange.fi/~atehwa/