clarification on common case for id mapping

svn: r4715
This commit is contained in:
Matthew Flatt 2006-10-30 22:12:24 +00:00
parent 03738d1e40
commit ad506aac3b

View File

@ -416,8 +416,8 @@ _boundmap.ss_: mapping identifiers based on bound-identifier=? and module-identi
The mapping uses `bound-identifier=?' to compare mapping keys, but The mapping uses `bound-identifier=?' to compare mapping keys, but
also uses a hash table based on symbol equality to make the mapping also uses a hash table based on symbol equality to make the mapping
efficient in the common case (i.e., where the identifiers print efficient in the common case (i.e., where non-equivalent identifiers
differently). are derived from different symbolic names).
> (bound-identifier-mapping? v) - #t if v was produced by > (bound-identifier-mapping? v) - #t if v was produced by
`make-bound-identifier-mapping', #f otherwise. `make-bound-identifier-mapping', #f otherwise.
@ -455,11 +455,9 @@ _boundmap.ss_: mapping identifiers based on bound-identifier=? and module-identi
The mapping uses `module-identifier=?' to compare mapping The mapping uses `module-identifier=?' to compare mapping
keys, but also uses a hash table based on symbol equality keys, but also uses a hash table based on symbol equality
to make the mapping efficient in the common case, i.e., to make the mapping efficient in the common case (i.e., where
where the identifiers print differently. Note that some non-equivalent identifiers are derived from different symbolic
identifiers print differently but are module-identifier=? names at their definition sites).
to each other. This case is handled properly by this
library.
> (module-identifier-mapping? v) - #t if v was produced by > (module-identifier-mapping? v) - #t if v was produced by
`make-module-identifier-mapping', #f otherwise. `make-module-identifier-mapping', #f otherwise.