[racket] empty hash tables

From: Marijn (hkBst at gentoo.org)
Date: Mon May 30 04:30:13 EDT 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Pierpaolo,

On 05/30/11 10:24, Pierpaolo Bernardi wrote:
> BTW, since the topic of empty tables has been brought up: I am often
> (mildly) annoyed by the fact that make-hash takes 0 or 1 argument,
> while make-immutable-hash takes only 1 argument, forcing me to write
> (make-immutable-hash '())..
> 
> Is there a reason for this lack of simmetry?
> 
> P.

`make-immutable-hash' is for constructing immutable hashes from
association lists; `hash' is the immutable equivalent of `make-hash'.

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3jVZUACgkQp/VmCx0OL2ybmwCZAfevMclvl0+TTLH3EI8stLQ5
du0AoLYp11QU42pY4NLIt/ls7fB5IfjC
=MjQr
-----END PGP SIGNATURE-----


Posted on the users mailing list.