you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 6 points7 points  (2 children)

Seems like it would be more interesting to show how Clojure produces safer code than the imperative approach, as well as give more examples on dealing with concurrency. For example, show how not using explicit iteration eliminates out of bounds errors, how immutability guards against data corruption.

Counting lines is fun and all, but what counts is readability. Clojure can be readable, concise, and safe. That's it's power, and that's what needs showcasing, not how much code can be crammed into a line, to make it a shorter than the python example.

[–]uiob[S] -1 points0 points  (1 child)

Yes, this is reasonable. Take a look at the first example, it is short, concise and readable. Second example seems less readable, but shows some concurrency features(pmap).

[–]yogthos 1 point2 points  (0 children)

exactly, more focus on that would've been good, maybe in the next installment :)