On Fri, Nov 19, 2010 at 1:59 PM, Chris Perkins <chrisperkin...@gmail.com> wrote: > 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.
I'm misinterpreting nothing. It may be misstating, however. > 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. It looks like it is indeed misstating then (albeit accidentally, in the way of computers). How about (throw (IllegalArgumentException. (str "Parameter declaration: expected a vector, saw \"" (first bad-args) "\" instead."))) => Parameter declaration: expected a vector, saw "loop" instead. That one's crystal clear no matter what symbol happens to come next after the missing argvec. -- 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