I notice that in http://www.r6rs.org/r6rs-editors/2006-March/001047.html, 
hash-table-get/call is mentioned and "added" in to r6rs. But in current version 
(5.92) of r6rs, I can't see it any more. 
As I understand the quesiton, for hash table ref, we need one procedure and one 
macro. Using SRFI-69 names, they should be:

procedure: hash-table-ref hash-table key [thunk] → value
(same as SRFI 69, but thunk should be tall called.)

macro: hash-table-ref/default hash-table key default
expands to
(hash-table-ref hash-table key (lambda () default))

R6RS 5.92 only contains hash-table-ref as a procedure, which is obviously not 
sufficient.

SRFI-69 defines hash-table-ref/default as a function, which I think is not 
appropriate, because the default should not be computed when the key is in the 
table.

-
Chongkai
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to