[racket] empty hash tables

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Mon May 30 04:34:48 EDT 2011

On Mon, May 30, 2011 at 10:30, Marijn <hkBst at gentoo.org> wrote:
> 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'.

I know.  Nevertheless my complain stands.  8^)

P.


Posted on the users mailing list.