Hi, I am going through the blog of Stuart Sierra regarding lifecycle composition. http://stuartsierra.com/2013/09/15/lifecycle-composition
In the end there is this para - "This technique is a form of dependency injection through constructors. The choice of whether to make the individual components mutable, stateful objects has an impact on how I can use them later on. In the original version of this pattern using mutable objects, each component gets stable references to other components it depends on. In the later version using immutable data structures, each component gets references to the *constructed* versions of other components it depends on, but not the *started* versions of those components, i.e. the values returned from start." I am unable to discern the pros and cons of both the versions (approaches). Any concrete examples will be appreciated. Thanks, Murtaza -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.