Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ref-resolve as RefLike protocol method #68

Merged
merged 1 commit into from Jan 9, 2020

Conversation

clyfe
Copy link

@clyfe clyfe commented Dec 31, 2019

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

Copy link
Owner

@weavejester weavejester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple of suggestions/changes.

src/integrant/core.cljc Outdated Show resolved Hide resolved
src/integrant/core.cljc Outdated Show resolved Hide resolved
Copy link
Owner

@weavejester weavejester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple more small suggestions, then I think we'll be ready to merge.

src/integrant/core.cljc Outdated Show resolved Hide resolved
src/integrant/core.cljc Outdated Show resolved Hide resolved
src/integrant/core.cljc Outdated Show resolved Hide resolved
@clyfe clyfe force-pushed the feature/65-reflike-resolve branch from ef112eb to c306ebd Compare January 8, 2020 18:57
Copy link
Owner

@weavejester weavejester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from a couple of places where the indentation is non-standard, this looks fine. Can you fix the indentation then squash your commits?

src/integrant/core.cljc Outdated Show resolved Hide resolved
src/integrant/core.cljc Outdated Show resolved Hide resolved
@weavejester
Copy link
Owner

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.

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 weavejester#63.
@clyfe clyfe force-pushed the feature/65-reflike-resolve branch from 87c22ab to 12abc93 Compare January 9, 2020 18:53
@weavejester weavejester merged commit ca8d632 into weavejester:master Jan 9, 2020
clyfe pushed a commit to clyfe/integrant that referenced this pull request Nov 30, 2020
These methods allow a RefLike implementation to determine which
dependencies are optional for a reflike, and which dependencies are
mandatory.
Also renames `include-refsets?` to `optional-deps?`.

Resolves: weavejester#77
See also: weavejester#63, weavejester#68
clyfe pushed a commit to clyfe/integrant that referenced this pull request Dec 5, 2020
These methods allow a RefLike implementation to determine which
dependencies are optional for a reflike, and which dependencies are
mandatory.
Also renames `include-refsets?` to `optional-deps?`.

Resolves: weavejester#77
See also: weavejester#63, weavejester#68
clyfe pushed a commit to clyfe/integrant that referenced this pull request Dec 5, 2020
These methods allow a RefLike implementation to determine which
dependencies are optional for a reflike, and which dependencies are
mandatory.

Resolves: weavejester#77
See also: weavejester#63, weavejester#68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants