juxt / clip

Light structure and support for dependency injection
MIT License
228 stars 15 forks source link

Provide way to provide "everything so far" #30

Closed bowbahdoe closed 1 year ago

bowbahdoe commented 2 years ago

This conversation in clojurians can give context, but basically It would be nice to be able to pass "everything so far" to the start mechanism of a component

SevereOverfl0w commented 1 year ago

I'm not keen on this feature, for the same reason as #9 wasn't implemented: explicit is better. If there's a change I can make to accommodate doing this in user-space better then I'm happy to do so.

I have thought a little bit about dependencies in this sense. Specifically I was thinking about http routers which ideally wouldn't need lots of duplication to make them work. My thinking was that components could request to participate in the dependency flow to generate themselves. This gives a lot of flexibility wrt dynamism.