[cl-prevalence-devel] Using strings as root keys?

Sven Van Caekenberghe scaekenberghe at common-lisp.net
Fri Sep 17 18:35:26 UTC 2004


On 17 Sep 2004, at 01:26, Randall Randall wrote:

> Hi, all.
>
> I'm just starting to play with cl-prevalence.
>
> Is there any reason (besides performance, which
> I know would suffer with EQUAL or EQUALP) why
> the root-objects hash in a system is EQ?

I honestly can't remember why I did this, but in CL using symbols as 
keys is free (as in doesn't cost you anything) *and* it is efficient.
I generally use 'managed prevalence' where the root keys are class 
names (and thus symbols).
Why would you want to use a string instead of a symbol ?

Sven





More information about the Cl-prevalence-devel mailing list