You can run Clojure directly, but often you don't just need Clojure, but
other libraries as well. The "lein run" command not only runs your code, it
also handles downloading any dependencies your code might have.
In Ruby terms, Leiningen is the equivalent of ruby + rbenv + bundler +
rake. I'm less familiar with the Python stack, but I believe python +
virtualenv + pip goes some way to having the same functionality.

- James

On 9 June 2016 at 17:08, Jiacai Liu <jiacai2...@gmail.com> wrote:

> I  started learning clojure recently, and I am annoyed at the way to run
> it (aka. lein run). why clojure script can't be run like python,ruby or
> scala, like python <file>.py
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to