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 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 <jiangh...@gmail.com<javascript:>> > wrote: > > Hi,Thank you so much ;) > > I use load-file at last and it works. > > > > > > 2014/1/3 Gary Trakhman <gary.t...@gmail.com <javascript:>> > >> > >> 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, <jiangh...@gmail.com <javascript:>> > wrote: > >>> > >>> > >>> 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 directory,how to require the namespace of *.clj dynamically? > >>> > >>> Happy New Year! > >>> Thanks in advance! > >>> > >>> -- > >>> -- > >>> You received this message because you are subscribed to the Google > >>> Groups "Clojure" group. > >>> To post to this group, send email to clo...@googlegroups.com<javascript:> > >>> Note that posts from new members are moderated - please be patient > with > >>> your first post. > >>> To unsubscribe from this group, send email to > >>> clojure+u...@googlegroups.com <javascript:> > >>> 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+u...@googlegroups.com <javascript:>. > >>> For more options, visit https://groups.google.com/groups/opt_out. > >> > >> > >> -- > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Clojure" group. > >> To post to this group, send email to clo...@googlegroups.com<javascript:> > >> Note that posts from new members are moderated - please be patient with > >> your first post. > >> To unsubscribe from this group, send email to > >> clojure+u...@googlegroups.com <javascript:> > >> 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+u...@googlegroups.com <javascript:>. > >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your > > first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > 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+u...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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/groups/opt_out.