Re: Why is this an Exception ?

2014-08-30 Thread Sreeharsha Mudivarti
On Saturday, August 30, 2014 12:34:24 AM UTC+5:30, Ashton Kemerling wrote: > > Bar/baz refers to the symbol baz in the namespace bar. If you haven't > created and imported bar, that's an error. > > This feels too java-ish for a lisp. Can I avoid this by some form of declaration ? -- You rece

Why is this an Exception ?

2014-08-29 Thread Sreeharsha Mudivarti
(defn foo[] (println bar/baz)) (defn car[] (println 42)) --- java -cp ~/clojure/clojure-1.6.0.jar clojure.main foo.clj Exception in thread "main" java.lang.RuntimeException: No such namespace: bar, compiling:(/Users/harsha/foobar/foo.clj:2:3) ... In Ruby and Python, the compiler is s