why a defn- but not a def- ?

2009-11-14 Thread Mike Hogye
Why is there an easy way to def a private function (defn-), but no similarly easy way to def an arbitrary var as private? -- 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

Re: why a defn- but not a def- ?

2009-11-14 Thread Albert Cardona
On Fri, Nov 13, 2009 at 11:26 PM, Mike Hogye stacktra...@gmail.com wrote: Why is there an easy way to def a private function (defn-), but no similarly easy way to def an arbitrary var as private? The way I see it, def- would encourage gratuitous variable declaration imperative style. By

Re: why a defn- but not a def- ?

2009-11-14 Thread John Harrop
On Sat, Nov 14, 2009 at 8:55 AM, Albert Cardona sapri...@gmail.com wrote: On Fri, Nov 13, 2009 at 11:26 PM, Mike Hogye stacktra...@gmail.com wrote: Why is there an easy way to def a private function (defn-), but no similarly easy way to def an arbitrary var as private? The way I see it,