make-eq-hash-table & Co. Marc Nieper-Wißkirchen (05 May 2020 15:31 UTC)
Re: make-eq-hash-table & Co. John Cowan (05 May 2020 18:30 UTC)
Re: make-eq-hash-table & Co. Marc Nieper-Wißkirchen (05 May 2020 19:59 UTC)
Re: make-eq-hash-table & Co. John Cowan (05 May 2020 19:15 UTC)

make-eq-hash-table & Co. Marc Nieper-Wißkirchen 05 May 2020 11:48 UTC

SRFI 162 has extended SRFI 128, the comparators API, in particular by
pre-made comparators `eq-comparator', `eqv-comparator', and
`equal-comparator'.

I would suggest to similarly extend SRFI 125, the hash-table API, to
include the following 12 convenience hash table constructors:

make-eq-hash-table, make-eqv-hash-table, make-equal-hash-table,
eq-hash-table, eqv-hash-table, equal-hash-table,
eq-hash-table-unfold, ...
alist->eq-hash-table, ...

Hash tables whose comparator is one of the three from above are the
most common ones. Thus, the suggestion simplifies the use of SRFI 125;
in particular, the explicit import of SRFI 128 will not be needed in
most cases.