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

Make defservice be implemented with metadata-based protocol extension #1

Open
wants to merge 4 commits into
base: 3.0.0
Choose a base branch
from

Conversation

vemv
Copy link

@vemv vemv commented Sep 23, 2020

Released as [threatgrid/trapperkeeper "3.1.0"]

This prevents errors similar to https://github.com/clojure/tools.namespace/tree/06de425a09333456319d9d06e96c181e4c2d7c0a#warnings-for-protocols.

Because we are using metadata-based extension, care has been taken to not use empty hashmaps. Otherwise, hashmaps that are equal can hinder service comparison in e.g. test helpers that use distinct over a seq of services.

This prevents errors similar to https://github.com/clojure/tools.namespace/tree/06de425a09333456319d9d06e96c181e4c2d7c0a#warnings-for-protocols.

When using metadata-based extension, take has beebn taken to not use empty hashmaps. Otherwise that easily produces hashmaps that are equal, which can hinder service comparison in e.g. test helpers that use `distinct` over a seq of services.
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.

1 participant