Re: ns/use/require/import inconsistent an confusing

2011-11-30 Thread Stuart Sierra
This has been heavily discussed, and some work is underway to mitigate it. See http://dev.clojure.org/display/design/Loading%2C+Compiling%2C+and+Namespaces -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: ns/use/require/import inconsistent an confusing

2011-11-30 Thread jongwon.choi
Even though I've written only one toy web framework in Clojure[1], (I think) I know the difference. Because there is documentation for use and ns, I'll add my own only :) I interpret "(use 'ns)" as "Use 'ns namespace within *current* namespace - from your example, 'user'. Usually for REPL. (ns

Re: ns/use/require/import inconsistent an confusing

2011-11-30 Thread j1n3l0
Also in a REPL you can do the following: user> (use 'example.core) nil user> But in a source file you have to do: (ns stuff.core (:use 'example.core)) I think I've seen the reason for this difference once before but can someone more learned *please* explain :) Thanks Nelo Ps: this exact