Have you looked at c.c.def/defvar?
http://richhickey.github.com/clojure-contrib/def-api.html
On Sun, Feb 20, 2011 at 2:53 PM, Ken Wesson wrote:
> On Sun, Feb 20, 2011 at 12:45 PM, Daniel Solano Gomez
> wrote:
> > On Sun Feb 20 17:30 2011, Paul Richards wrote:
> >> I've been trying to add docst
On Sun, Feb 20, 2011 at 12:45 PM, Daniel Solano Gomez
wrote:
> On Sun Feb 20 17:30 2011, Paul Richards wrote:
>> I've been trying to add docstrings to my constants that are defined
>> using 'def'. According to the webpage[1] I should be able to write:
>>
>> (def pi "hello" 3.14)
>>
>> But this fa
On Sun Feb 20 17:30 2011, Paul Richards wrote:
> I've been trying to add docstrings to my constants that are defined
> using 'def'. According to the webpage[1] I should be able to write:
>
> (def pi "hello" 3.14)
>
> But this fails with:
> java.lang.Exception: Too many arguments to def (NO_SOURC
I've been trying to add docstrings to my constants that are defined
using 'def'. According to the webpage[1] I should be able to write:
(def pi "hello" 3.14)
But this fails with:
java.lang.Exception: Too many arguments to def (NO_SOURCE_FILE:1)
This is with Clojure 1.2.0.
Note the slightly lo