Re: Adding an option to clojure.main

2010-04-24 Thread Stephen C. Gilardi
On Apr 24, 2010, at 1:40 AM, Phil Hagelberg wrote: So it seems like recently the only thing I use AOT for is producing -main functions that can be easily run from the command-line. I've found that an alternate to this is to use clojure.main -e, require the necessary namespace, and then call

Re: Adding an option to clojure.main

2010-04-24 Thread Alex Osborne
Phil Hagelberg p...@hagelb.org writes: So it seems like recently the only thing I use AOT for is producing -main functions that can be easily run from the command-line. I've found that an alternate to this is to use clojure.main -e, require the necessary namespace, and then call (apply -main

Re: Adding an option to clojure.main

2010-04-24 Thread Phil Hagelberg
On Sat, Apr 24, 2010 at 12:17 AM, Stephen C. Gilardi squee...@mac.com wrote: I like it a lot. Here's an old discussion along similar lines. http://www.mail-archive.com/clojure@googlegroups.com/msg12372.html I think something like this would be a nice improvement to clojure.main. Cool. It's an

Adding an option to clojure.main

2010-04-23 Thread Phil Hagelberg
So it seems like recently the only thing I use AOT for is producing -main functions that can be easily run from the command-line. I've found that an alternate to this is to use clojure.main -e, require the necessary namespace, and then call (apply -main *command-line-args*), but this is rather