Re: Docstring on def

2011-02-20 Thread rob levy
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

Re: Docstring on def

2011-02-20 Thread Ken Wesson
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

Re: Docstring on def

2011-02-20 Thread Daniel Solano Gomez
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

Docstring on def

2011-02-20 Thread Paul Richards
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