On Sun, Oct 11, 2009 at 8:49 AM, John Harrop <jharrop...@gmail.com> wrote:
> It's attempting to attach the metadata to the next following expression. In > this case all it finds is a close paren. > => (list #^{:foo 'bar} 'sym) > (sym) > => (list #^{:foo 'bar}) > #<Exception java.lang.Exception: Unmatched delimiter: )> > > I'm not sure how to attach metadata to a namespace, but I'd try putting the > metadata before the (ns ...) form instead of just inside it, or else just > before the ns name. > > In clojure-contrib it is right after ns (I *thought* I was doing what they were but wasn't looking right): (ns #^{:author "Stuart Sierra", :doc "This file defines \"duck-typed\" I/O utility functions for Clojure. The 'reader' and 'writer' functions will open and return an instance of java.io.BufferedReader and java.io.PrintWriter, respectively, for a variety of argument types -- filenames as strings, URLs, java.io.File's, etc. 'reader' even works on http URLs. Note: this is not really \"duck typing\" as implemented in languages like Ruby. A better name would have been \"do-what-I-mean-streams\" or \"just-give-me-a-stream\", but ducks are funnier."} clojure.contrib.duck-streams --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---