> For very short functions one can use the cut notation: #(...). In case
> there are several functions or functions going over several lines, this
> is a sign that they should go into an own defn(-) with appropriate
> docstring.
Maybe the solution is to use defn-. Scheme made me used to the local
function approach for encapsulation. I don't have a problem with doing
(defn foo [x]
(defn bar [y]
)
(defn baz [z])
(do_stuff (bar[x]))
except that the interior defns are public.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---