On Sun, Oct 11, 2009 at 8:49 AM, John Harrop 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})
> #
>
> I'm not sure how to attach metadata to a namespace,
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})
#
I'm not sure how to attach metadata to a namespace, but I'd try putting the
metadata before the (ns ...) form instead of
>
> Metadata goes before the symbol, not after it. So:
>
> > (ns com.arcanearcade.clojure.utils.regex-utils
> > #^{:author "Robert Stehwien",
> > :doc "Clojure regular expression utilities"}
> > (:require [clojure.contrib.java-utils :as ju]))
>
> Is actually putting the metadata on the (:r
On Oct 11, 1:59 pm, Robert Stehwien wrote:
> Using clojure 1.1.0-alpha-SNAPSHOT I get an unexpected error when compiling
> a ns with metadata but nothing else. The same metadata with a require or
> use form works. Should I be using something else or is this an actual bug?
Metadata goes before
Using clojure 1.1.0-alpha-SNAPSHOT I get an unexpected error when compiling
a ns with metadata but nothing else. The same metadata with a require or
use form works. Should I be using something else or is this an actual bug?
This ns compiles:
-
(ns com.arcanearcade.clojure.utils.regex-utils