Fork me on GitHub
#polylith
<
2023-01-24
>
Chris Lester00:01:39

I've a question relating to spec components in polylith. I'm adding one (a spec component) as a brick for general primitives across the codebase and was wondering whether to add those directly in the interface.clj .. or do (unnecessary?) work to follow the poly pattern with impl in core and the interface being clean. I haven't seen anyone using a component that way so don't have a good guideline.

seancorfield01:01:51

We generally have the specs in the interface and only have an impl ns if the specs depend on new predicates (the implementation of those predicates go in impl).

✔️ 2