Hi,

Am 10.09.2008 um 21:43 schrieb Allen Rohner:

Is there a cleaner way to create local functions than
(let [foo (fn [x]
               ...)]
  (foo 42))

?
In which way would another notation be cleaner? I think this is mainly
an issue of personal taste. So here is mine:

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.

As always: YMMV.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to