Does it make sense to have the same generic interfaces for both kinds of dictionary types?

I mean, is there a pressing need for a common interface?

If there is, we should define a loose hierarchy of dictionary type descriptors that classifies which are capable of what.  Similar to the C++ iterator categories.



Am Di., 31. Aug. 2021 um 06:15 Uhr schrieb John Cowan <xxxxxx@ccil.org>:
All current dictionary types allow an object to be copied and a new object returned.  But in a type in which all dictionaries have external names (e.g. a key-value disk store like BDB or a database table), simple copying won't work.

A consequence of this is that types that are naturally mutational (like both the above types) cannot be provided with functional equivalents.

I don't know what to do about this.