On Fri, Dec 27, 2013 at 1:08 PM, Mark Engelberg <[email protected]>wrote: > > Solution 2: > > (defn foo [shared-info x] ... body uses shared-info) > (defn bar [shared-info x] ... body uses shared-info) > > Call these functions via: > > (foo info 2) > (bar info 3) >
In what way is this any worse than info.foo(2); info.bar(3); which is how OO would do this with methods foo and bar of a common class with an instance "info" having private data? Only the punctuation and VSO vs. SVO word order differ here. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
