Re: Require namespace

2014-01-05 Thread Tim Visher
Hi juanghui, If you're working out your stuff, more power to you, but I do want to say that you sound quite far off the beaten path of Clojure usage, so just be aware that you may be accomplishing your goal in a non-standard, hard to support way. :) On Sat, Jan 4, 2014 at 6:12 AM, jianghui

Re: Require namespace

2014-01-05 Thread Justin Smith
Agreed, sticking with require scales better than load-file, and require is actually the right way to use functionality in another ns. load-file is a clumsy tool and you will hit its limits quickly. On Sunday, January 5, 2014 8:54:18 AM UTC-8, Tim Visher wrote: Hi juanghui, If you're

Re: Require namespace

2014-01-04 Thread jianghui
Hi,Thank you so much ;) I use load-file at last and it works. 2014/1/3 Gary Trakhman gary.trakh...@gmail.com There's a reasonable blog post here on the matter: http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html It's a bit complicated

Require namespace

2014-01-02 Thread jianghui8904
Hi, I am a newbie of Clojure.I have some confusions of "how to require a namespace". 1、If I want to call a function of file B.clj in the file A.clj,does I have to require the namespace of B.clj in A.clj? 2、In the file A.clj,if I need to call the functions of all *.clj in the special

Re: Require namespace

2014-01-02 Thread Gary Trakhman
There's a reasonable blog post here on the matter: http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html It's a bit complicated to regurgitate it all in a mailing list response :-). On Thu, Jan 2, 2014 at 8:33 AM, jianghui8...@gmail.com