defn= publicdefn-= private
Perhaps I have bad Clojure coding style — but I find that most functions I write in Clojure are small helper functions that I do not want to expose.
Is there some configuration option, where:
defn= private by default,- and to make something public, I have to do
defn+?
Thanks!
No. There is not.
An alternative approach which might or might not work for you is to declare a
foo.bar.internalnamespace containing all the private helpers which is used by yourfoo.barnamespace. This has advantages over private function declarations when you want to use private functions in macro expansions.