4 ms·
I just spent the weekend messing around with Clojure. The docs aren't great (mainly due to lack of examples, IMHO) and it's been 10 years since I seriously prog
by 100k 17y ago
I just spent the weekend messing around with Clojure. The docs aren't great (mainly due to lack of examples, IMHO) and it's been 10 years since I seriously programmed in any Lisp so it's been a bit slow going.
But I am in love with the concurrency model. Clojure's software transactional memory is amazing. It's like garbage collection for concurrency. Instead of having to remember to synchronize everywhere concurrent access could occur, you have to start a transaction any time you want to manipulate shared state.
- ikitat 17y agoThe clojure wiki has examples.
- 100k 17y agoYeah, I know that. I had about 40 tabs open with every page I could find. All I'm saying is that It takes a while to figure out stuff like: I would like to call toLowerCase on a list of strings. How do I pass an argument to the function? (map #(.toLowerCase %) word-list) It's not exactly obvious without a bit of searching what # and % and . mean here.