Guile Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme style auto-resizing hashtable (fwd)



Jay Glascoe <jglascoe@jay.giss.nasa.gov> writes:

 > I could weasle my way out of both problems by making, e.g.
 > 
 > (make-dictionary eq?)
 > 
 > return a dictionary which automatically calls scm_eq_p when needed instead
 > of calling scm_apply.  The header would then store one of 'eq?, 'eqv?,
 > 'equal? inside itself. 
 > 
 > But... what's the point?  That's essentially what make-dictionary and
 > friends are doing now.

This is exactly what I was thinking of.  The points would be that a)
it's 1 fcn instead of 3 fcns & b) it allows user supplied equality &
hashers.  They'll be necessary in certain applications & if the user
really needs it & needs it to be fast he'll compile the fcns & link
them in.

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il

Guile Home | Main Index | Thread Index