Skip to content

Comment on Clojure builds as an amalgamation of orthogonal partsparent

Comments

I'm not sure how they can make it easier than what it currently is, no need for any unofficial channels. If you follow the guide at https://clojure.org/guides/getting_started to install Clojure, you'll end up with `clj` in your `$PATH`, and then it is as easy as it is with Python, unless I misunderstand what you mean.

   $ clj --version
   Clojure CLI version 1.10.3.849
   
   $ echo "(println \"hello world\")" >> hello-world.clj
   
   $ clj hello-world.clj
   hello world

This was three or four years ago so it's very possibly changed since then (in fact the OP was specifically about this story changing)

Yeah, three or four years ago (before Clojure Tools), you'd have to do something like this:

    $ java -cp clojure.jar clojure.main hello-world.clj
Still, I'd argue it's about the same as Python, at least for the most basic use case, like what you were complaining about in your previous comment.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.