Skip to content

Comment on Poor man's dependency injection in Clojure

Comments

Check out Stuart Sierra's "component" for another take. Of course, another take is that you're better off just constructing objects by calling their constructors directly.

Agreed, there are much more elaborate approaches than this one.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.