Wilson MacGyver <wmacgy...@gmail.com> writes: Hi Wilson,
> I saw that clojure has loop. But in other functional languages, using > loops are always discouraged. So I didn't know if loop was the > "clojure" idiomatic way of doing this. Clojure's `loop' (with `recur') is no "real" loop in an imperative sense. It's a form of (non-mutual) recursion optimized to be space efficient on the JVM which lacks tail call optimization. Using it is perfectly idiomatic, although it's not the way to go for each and every problem. Bye, Tassilo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---