Best Way To Load and Run Clojure program in REPL

31 views
Skip to first unread message

octopusgrabbus

unread,
Jun 7, 2011, 3:47:38 PM6/7/11
to Clojure
I've been searching the documentation -- which is quite good by the
way for experienced programmers new to Clojure -- to find out how to
load a test.clj into REPL and then run it. I would appreciate a
pointer to documentation. Thank you. cmn

Jonathan Fischer Friberg

unread,
Jun 7, 2011, 3:51:24 PM6/7/11
to clo...@googlegroups.com
A simple way is to use 'load'. That is only for simple testing, otherwise use the namespace facilities.
http://blog.8thlight.com/articles/2010/12/6/clojure-libs-and-namespaces-require-use-import-and-ns

Jonathan

--
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
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
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Armando Blancas

unread,
Jun 7, 2011, 4:23:22 PM6/7/11
to Clojure
Sounds like you're looking for (load-file "test.clj")

http://clojure.org/evaluation
Reply all
Reply to author
Forward
0 new messages