On Mon, Mar 5, 2012 at 2:15 PM, Stuart Sierra
<the.stuart.sie...@gmail.com> wrote:
> Yes, it is incorrect, in both Clojure and ClojureScript, to repeat the
> (:require ...) or (:use ...) forms in an `ns` declaration.

Really? Most of the Clojure code I've seen out in the wild has a
:require for each required library (and a :use for each used library).
If it is incorrect, the `ns` macro should throw an error. This blog
post to which everyone is constantly being referred for an explanation
of namespaces, use, require etc shows multiple :require forms:

http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html

Given how common this usage is - and the fact that it _works_ in
Clojure (for JVM), I'd argue this is a bug in ClojureScript.

I'd also argue you can't unring this bell and now make it illegal in Clojure...
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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

Reply via email to