John Krasnay wrote on Sunday, January 31, 2016 at 10:11 AM: Instead of this, I'm considering an approach where my functions instead return a data structure containing a description of the side-effects to be performed (e.g. "insert these rows into this table", "send this email", ...), and having a single non-pure function that does all the side-effectful work described by the structure.
See https://github.com/seancorfield/engine which I built to investigate exactly that approach. We haven’t started using it at work (World Singles) but that is the plan so I’d be interested in getting more feedback on it. I have not yet released it to Clojars. Sean -- 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/d/optout.