I miss a workflow I find in other languages.
I’ll explain with an hypothetical language: The-L.
The-L has 3 tools:
- An interpreter thel
- A Shell (just in case I’m not using correctly the term REPL) thelsh
- A package manager thelpm
I can go to a cafe with Internet, and run:
$ thelpm install the3rdPartyPackageIWant
Then I go home, and have not Internet for whatever reason.
I can use and explore the3rdPartyPackageIWant witthouth too much protocol:
$ thelpm % (import the3rdPartyPackageIWant) % (the3rdPartyPackageIWant/aFunction 123) 321 %
Notice I didn’t need to be in a particular directory while launching the shell. Also, I didn’t need to write a file describing dependencies.
Is there something similar in Clojure?
In Java I think I could have a similar user experience as a programmer by just setting my CLASSPATH and saving the jar there. Being Clojre based on the JVM, Will this work in Clojure?
Java or Clojure: can any of the tools that also has the role of package manager (a complecting property common in this Java world: yes, I mean you maven, lein, boot, etc. you do many things) be instructed to install the package required in a System Level, just like The-L languaje?
TLDR; What is the easiest way (yes, easy as lazy, instead of simple as Ritchie has highlighted) to install a library and use it in the Clojure REPL?