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 expression is separate from the :require expression in an ns statement. This still produces an error in Clojurescript 1.9.229. It seems to say that :refer is not allowed in ns: clojure.lang.ExceptionInfo: Only :refer-clojure, :require, :require-macros, :use, :use-macros, and :import libspecs supported at line 1 ... :tag :cljs/analysis-error I just noticed some things about ns docstrings: The docstrings for ns in Clojure 1.8.0 and 1.9.0-alpha12 don't mention :refer at all. The docstring in Clojurescript 1.9.299 says that ":require supports :as, :refer, and :rename", which I would read as implying that :refer belongs somewhere inside a :require expression. However, :exclude is only mentioned in relation to :refer-clojure. At this point, :exclude is just something to be curious about for me, since I rarely pull all or almost all of a namespace into another one. Maybe I'll leave it alone now that I've flagged some questions? I don't understand enough to submit relevant tickets. -- 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 Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
