Re: [ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread Alex Miller
On Mon, Sep 26, 2016 at 5:38 PM, António Monteiro wrote: > > > FWIW, beware that locking this down further would have to account for > ClojureScript's `:refer-macros` and `:include-macros`, etc. > CLJS will already need a different spec than CLJ for ns to account for this

Re: [ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread Alex Miller
On Monday, September 26, 2016 at 1:24:27 PM UTC-5, mars0i wrote: > On Monday, September 26, 2016 at 10:13:58 AM UTC-5, Alex Miller wrote: > > I think this would do what you want: > > > > (ns free.matrix-arithmetic > >   (:require [clojure.core.matrix :as mx]) > >   (:refer clojure.core.matrix

Re: [ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread mars0i
On Monday, September 26, 2016 at 10:13:58 AM UTC-5, Alex Miller wrote: > I think this would do what you want: > > (ns free.matrix-arithmetic >   (:require [clojure.core.matrix :as mx]) >   (:refer clojure.core.matrix :exclude [e*])) Thanks very much. I didn't understand that the :refer

Re: [ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread Alex Miller
I think this would do what you want: (ns free.matrix-arithmetic (:require [clojure.core.matrix :as mx]) (:refer clojure.core.matrix :exclude [e*])) On Mon, Sep 26, 2016 at 9:54 AM, mars0i wrote: > > :exclude is not a valid option here (it's not having any effect).

[ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread mars0i
> :exclude is not a valid option here (it's not having any effect). (doc > require) mentions only :as and :refer as valid options in the libspec. > :exclude is an option for :refer and :refer-clojure, not for :require. > > It's maybe interesting that the spec for ns does not report this problem

[ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread Alex Miller
On Sunday, September 25, 2016 at 10:41:33 PM UTC-5, mars0i wrote: > This compiles in Clojure 1.9.0-alpha12 but not in Clojurescript 1.9.229: > > (ns free.matrix-arithmetic > (:require [clojure.core.matrix :as mx :exclude [e*]])) > > The error in Clojurescript is: > >

[ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread Phill Wolf
There is no :exclude in the Clojure API documentation for require. The errant line of code might be a mix-up between require and use. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the