Hi! My first guess: a normal function evaluates all its arguments. ns uses (:require ....) (:use.. ) (:import ..) that should be not evaluated at ns apply. The alternative is to make ns an special form, but macro should be more flexible.
Instead, in-ns is simpler, and it can be implemented as a normal function. Angel "Java" Lopez @ajlopez On Tue, Dec 30, 2014 at 5:30 AM, Petr <petrg...@gmail.com> wrote: > Hello. > > Does anyone know why clojure.core/ns macro is not implemented as function? > It seems that it should work that way except that probably it would be > nicer to have in-ns call at the top level. > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.