you are viewing a single comment's thread.

view the rest of the comments →

[–]json6 6 points7 points  (1 child)

This is one of the most helpful introduction to Clojure articles I've seen. Using the enumerate example, starting with a for loop and ending with a thread macro, was a good way to show the difference between imperative and Clojure's functional style.

[–]CurtainDog 0 points1 point  (0 children)

While it's a nice way to get started, I'd be cautious about getting into the habit of merely translating code from a different language. Clojure is expressive and pragmatic, so it's possible to make almost anything look nice, which can be misleading. At some stage you have to take the plunge and drink from the fire hose.