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_SOURCE_FILE:1) > > This is with Clojure 1.2.0.
As far as I can tell, the fix is not actually in 1.2.0. According to JIRA, this is fixed in ‘Release.next’: http://dev.clojure.org/jira/browse/CLJ-280 I tried '(def pi "hello" 3.14)' in a 1.3.0 snapshot, and that seems to work just fine. Sincerely, Daniel Solano Gómez
pgpzq0W8sBnc9.pgp
Description: PGP signature
