Marc Nieper-Wißkirchen wrote: > > - If someone creates a derivative of the HAMT, the iterator won't > > be affected, right? ("persistence") > > Yes.
OK, that's one thing to document. > > So, what is the scenario where increasing the reference count will make > > a difference? > > If you have a language with GC like Lisp or Scheme, say, the hamt may > be GC'd while the iterator is still live. And in C, when someone calls hamt_free on the HAMT, the iterator won't be affected. IMO, that's another thing to document (because it's unexpected). Bruno