Re:Poor man's dependency injection in Clojure
by chriswarbo on Saturday January 25, 2014 @10:17AM
(#7120997)
That's exactly what I was thinking. I've not used Clojure specifically, but in the sitations where OO people use dependency injection I tend to use a free monad with multiple interpreters. I'm yet to make serious use of an algebraic effect system, but that would make this even simpler and more composable.
[ Parent
| on HN ]