Good, thanks
On Friday, December 20, 2013 8:08:39 PM UTC-5, guns wrote:
>
> On Fri 20 Dec 2013 at 05:04:13PM -0800, Dave Tenny wrote:
>
> > Is there any alternative I'm missing short of writing my own macro to
> > allow non-string forms for docstrings?
>
> Use the ^ reader macro to set the :doc
On Fri 20 Dec 2013 at 05:04:13PM -0800, Dave Tenny wrote:
> Is there any alternative I'm missing short of writing my own macro to
> allow non-string forms for docstrings?
Use the ^ reader macro to set the :doc entry:
(def my-docstring "foo bar")
(defn ^{:doc my-docstring} foo [])
guns
pg
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 the