-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Any type that supports metadata will likely need a way to iterate over metadata for propagating metadata to new instances or merging metadata. The generic way of iterating through metadata right now is using accessing each key form the iterable returned by metadatakeys. Depending on how metadata is stored this may not be the most efficient way to accomplish this. If the method that is propagating metadata internally is managing a single collection of metadata then a unique implementation can be written for whatever method of iteration is best. However, when combining multiple sets of metadata it's not practical to have a unique method for every combination of metadata storage patterns.
A couple things to consider in supporting generic iteration over metadata:
- How do we manage to including the style information. This may be as simple as having two methods such as
metapairsandstyledmetapairs. - Do we want a default for this method that functions like the current heuristic using
metadatakeys?