r/programming • • Oct 06 '15

Writing Friendlier Clojure

http://adambard.com/blog/write-friendlier-clojure/
19 Upvotes

2 comments sorted by

2

u/satayboy Oct 06 '15

The recursive function ought to be fine until you decide to generate William Faulkner sentences. Or maybe James Joyce. Funny coincidence: if you look up Longest English Sentence in Wikipedia, the last paragraph talks about recursion.

2

u/CurtainDog Oct 06 '15

recur doesn't consume the stack, and I don't see anything else that would. But I do think that it would read better if it used iterate over pick-next-word rather than loop...recur.