Would it be a good idea to allow the ns macro this same syntax sugar?
For example:
(ns example
"This is an example"
{:author "John Doe"
:email "jd...@example.com"}
(:use clojure.contrib.def)
(:require [clojure.core.set :as set]))
This looks a little neater than when the metadata is placed before the
namespace name, as is currently required:
> I think everywhere there is a docstring? parameter there should be
> attr-map? parameter.
Me too - and that's why I wrote clojure.contrib.def/name-with-
attributes a while ago, which makes it simple to implement such a
convention in macros:
http://richhickey.github.com/clojure-contrib/def-api.html#def/name-
with-attributes
For a usage example, see clojure.contrib.types/deftype:
Konrad.