>> I think clojure.lang.Repl should translate its args to the new >> format and >> call clojure.main/-main: >> >> old: clojure.lang.Repl file1 file2 -- a b c >> new: clojure.main -i file1 -i file2 -r a b c >> >> Similarly for clojure.lang.Script: >> >> old: clojure.lang.Script file1 file2 file3 -- a b c >> new: clojure.main -i file1 -i file2 file3 a b c >> > > Ok, so calls to them won't change but they will delegate to main/tell.
They will delegate to clojure.main/-main. Then we'll document only clojure.main as the way to run a script or launch Clojure's repl. >> >> >> >> >> > >> [2] A single "-e" or "--eval" option should be allowed to contain >> multiple >> forms and it should evaluate them sequentially. There are cases where >> wrapping multiple forms in a "do" does not work and writing >> >> -e (this) -e (that) -e (the-other) >> >> is tedious compared to >> >> -e "(this) (that) (the-other)" >> > > This (-e) seems rather unimportant, but I wonder when does 'do' not > work? 'do' doesn't work when an early form uses a namespace and a later form depends on that. java -cp clojure.jar clojure.main -e "(use 'clojure.set)" -e "(union #{:a} #{:b})" works. java -cp clojure.jar clojure.main -e "(do (use 'clojure.set) (union #{:a} #{:b}))" fails. --Steve --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---