>
> Why is there this difference in behavior between interactive and 
> compiled code? 
>

In case you'd wonder why it works at the repl since what we type there are 
strings, too. The repl gets them through a call to (read) which parses 
strings into data structures that are Clojure code.
This step is missing for gen-class classes and the contents of 
*command-line-args* but you could mimic it with something like:
(def argv (map read-string *command-line-args*))
Though you'd want to parse numbers safely as Jim showed, for quick tests 
this can help.

-- 
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

Reply via email to