I have a set of functions that need a map of historic data. Hence, this map gets passed along from function to function, usually several levels deep. In addition to the map, a reference date also frequently get passed along in 80% of the API. Sometimes a third or fouth parameter is also passed along several layer in addition to function specific parameters. You got the idea. In OOP, these common function parameters usually are part of the object's attributes. In FP, I've seen them passed along individually or packaged up into a map or vector so that they are easy to pass along... sort of like a context object getting passed around.
What's the Clojure's way or FP way to improve this without having 5+ parameters in almost every function? Thanks Chris -- 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.