This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Association lists


Nic Ferrier writes:
 > Scheme supports hash operations on lists to allows lists to be treated
 > as hash tables.

Associative arrays are not hashtables, although they have a similar
API, because their performance is not equivilent

 > I was wondering: do most Scheme implementations optimize lists that
 > are used as hashes into real hashes?

I think most Scheme implementations provide real hashs as a seperate
non-standard extensions. I know scheme 48 does, and my personal scheme
in java just allows people to use Java Hashtables.

I don't think the compiler can lexically determine the usage of a hash to
see that it is never used as a list.

-bri

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]