News for hackers. Stuff that matters.
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.
Re:Poor man's dependency injection in Clojure by pacala on Saturday January 25, 2014 @08:31PM (#7123392)
Could you please share a few examples?