Hari, I agree--dependency injection is not about OOP. It is about working around limitations in certain languages where it is difficult to decouple components for testing and flexible deployment.
I have not encountered similar limitations in Clojure. Do you have an example in Clojure that makes you wish for DI? I would be interested in taking a look and suggesting a more idiomatic Clojure approach. Cheers, Stu > Hi, > clojure web site says - "Clojure multimethods are a simple yet > powerful mechanism for runtime polymorphism that is free of the > trappings of OO, types and inheritance" . > > I think dependency Injection has nothing to do with just OOP, though > it came out in OOP. > Why not dependency inject arbitary code to another arbitary code?? > > Thanks & Regards, > Hari Sujathan > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---