If foo is their only caller, bar and baz can be locals inside foo and thus giving baz direct access to foo's params. Checkout (letfn): http://clojuredocs.org/clojure_core/1.2.0/clojure.core/letfn
On Dec 2, 7:34 pm, Jim Crossley <j...@crossleys.org> wrote: > Hi, > > I have a public function foo that uses two private functions bar and baz. > So foo calls bar which calls baz. Two of the parameters passed to foo > aren't used by bar, only baz. > > Though the segregation of behavior across foo, bar, and baz makes sense for > my program, I feel dirty making the params required by baz a part of bar's > signature. > > Should I just get over it or is there a better way? > > Thanks, > Jim -- 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