3 ms·
You can also just... $ clojure some_code_you_wrote.clj It's a shame that this is either missing or well-hidden in the official docs, common intro guides, et
by slotrans 4y ago
You can also just...
$ clojure some_code_you_wrote.clj
It's a shame that this is either missing or well-hidden in the official docs, common intro guides, etc. It's not how you make a "real" application or whatever, but if you're just trying to play with it, this way works great.
I hate having to make a "project" just to even Hello World. I much prefer the bash/Python/Groovy/etc approach of "drop some code in a file and run it".
- LesZedCB 4y agoyou can even just shebang it. if the startup time sucks too much, babashka has you covered! just s/clojure/bb.