r/Clojure • • May 24 '17

Readable Clojure

http://tonsky.me/blog/readable-clojure/
94 Upvotes

31 comments sorted by

View all comments

8

u/weavejester May 25 '17

(when (seq x) ...) is a standard Clojure idiom. I don't think using it makes the intent unclear.

I disagree about not using comp. To my mind (comp f g) is more readable than #(f (g %)) because there's no extraneous syntax getting in the way.

Using a * prefix for mutable references is interesting.

Using two empty lines between functions just seems like wasted space to me. I have no difficulty seeing the gaps between functions.

Other than those things, there are a lot of sound ideas.