On Nov 18, 11:09 pm, Ken Wesson <kwess...@gmail.com> wrote: > I got this oddity while debugging a Clojure sourcefile today: > > user=> <right click "load file" in netbeans> > #<CompilerException java.lang.IllegalArgumentException: Parameter > declaration loop should be a vector (io.clj:55)> > user=> >
You're misinterpreting the error message. It's not trying to tell you that the parameters to loop should be a vector - it's trying to tell you that the symbol "loop" was used where you should have used a vector. Try this: user=> (defn foo (loop [] 1)) java.lang.IllegalArgumentException: Parameter declaration loop should be a vector (NO_SOURCE_FILE:0) user=> (defn foo (xyz [] 1)) java.lang.IllegalArgumentException: Parameter declaration xyz should be a vector (NO_SOURCE_FILE:0) You're hitting this line from core.clj (the very last line, coincidentally): (throw (IllegalArgumentException. (str "Parameter declaration " (first bad-args) " should be a vector"))) I have no idea about the line-numbering thing, though. - Chris -- 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