weavejester / integrant

Micro-framework for data-driven architecture
MIT License
1.24k stars 64 forks source link

Add ref-resolve as RefLike protocol method #68

Closed clyfe closed 4 years ago

clyfe commented 4 years ago

This allows implementing "RefThing"s beyond just Ref & RefSet that resolve in a custom way. For example a RefMap would be like RefSet but would resolve to a map {k -> ref} instead a refs set.

Related to #63

weavejester commented 4 years ago

Thanks! Can you update the commit message to:

Add ref-resolve as RefLike protocol method

This allows custom references to be added that resolve in different
ways. For example, a RefMap type might act the same as a RefSet, but
include the keys for each referenced value.

See issue #63.

Then it should be good to merge.