On Dec 9, 1:18 pm, Stuart Halloway <[EMAIL PROTECTED]> wrote:
> Here is where I am: If your function creates/returns only atoms or  
> fixed size collections, loop/recur is fine. If it might return (or  
> internally create) variable/huge/infinite collections, use lazy-*.

I agree in general, although I'd simply say that loop/recur should be
used only when there is no high-level (filter, map, reduce, ...) or
lazy-* equivalent.  On the other hand, some algorithms are clearer
with loop/recur, especially when translated from an imperative style.

-the other Stuart (Sierra)
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to