Nice work. The use of keys is interesting.

I'm not sure of this affects Codependence, but I released a new version of
Integrant a few days ago that supports multiple components of the same type
via composite keys.

- James

On 19 March 2017 at 09:17, James Laver <james.la...@gmail.com> wrote:

> Hi all,
>
> The Irresponsible Clojure Guild is pleased to announce codependence 0.1.0
> is now available on clojars.
>
> This library came about because I liked integrant, but I wanted a bit more
> flexibility. It's built upon integrant (which is cool, I ported it to
> clojurescript!) but with a twist.
>
> In ordinary integrant, you might specify an app like this (component
> configs elided for brevity):
>
> ```
> {:http {}
>  :db {}}
> ```
>
> In codependence you specify them like this:
>
> ```
> {:http {:co/tag :http/aleph}
>  :db {:co/tag :db/utrecht}
> ```
>
> In the first example, :http and :db are the tags one will register
> behaviour for. in the second, they are :http/aleph and :db/utrecht.
> integrant refs are unmodified
>
> This firstly means that one tag can instantiate multiple components of the
> same type and secondly makes it easier to ship predefined components and
> let a user stitch them together as config
>
> dep coord: [irresponsible/codependence "0.1.0"]
> github: https://github.com/irresponsible/codependence
>
> Cheers,
> James (and the ICG)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to