Re: Weird issue with :require in clojurescript

2012-03-05 Thread Weber, Martin S
Then both Clojure and ClojureScript's `ns` macro should complain about multiple present (:require ..) or (:use ..) forms at compile-time. At lest Clojure's `ns` macro doesn't do that on clj-1.3. Regards, -Martin On 2012-03-05 17:15 , "Stuart Sierra" wrote: >Yes, it is incorrect, in both Clojure

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
Thanks Stuart. In the documentation for ns it says that "references can be zero or more of: (:refer-clojure ...) (:require ...) (:use ...) (:import ...) (:load ...) (:gen-class)". Also, using (:require...) twice in clojure (1.3) actually does work. Maybe there could be some clarification in t

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Sean Corfield
On Mon, Mar 5, 2012 at 2:15 PM, Stuart Sierra 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 :us

Re: Weird issue with :require in clojurescript

2012-03-05 Thread Stuart Sierra
Yes, it is incorrect, in both Clojure and ClojureScript, to repeat the (:require ...) or (:use ...) forms in an `ns` declaration. -S On Monday, March 5, 2012 12:26:03 PM UTC-5, Aaron wrote: > > It seems that when I require two namespaces in a namespace definition, > the clojurescript compiler m

Weird issue with :require in clojurescript

2012-03-05 Thread Aaron
It seems that when I require two namespaces in a namespace definition, the clojurescript compiler misses the first require. I have a module that has a ns definition more or less like the following: (ns my-namespace (:require [lib1 :as l1]) (:require [lib2 :as l2])) Using clojurescript master (