I'm guessing the answer to this is that I'd have to write my own 'defn'
equivalent that would parse a form rather than requiring a string, but
here's hoping.
One of the things I did in Common Lisp was to occasionally compute the
docstring for a function with a little function that formatted them the way
I wanted them.
e.g.
(defun foo (bar)
#.(docstring "some text to be made into a docstring for foo"
"some more text to be formatted as part of the docstring of
foo")
...
There's no #. equivalent that I know of in clojure, so that approach is out.
I also can't do a
(def docstring "abc")
(defn foo docstring [] 'bar)
or an error crops up.
Is there any alternative I'm missing short of writing my own macro to allow
non-string forms for docstrings?
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.