On Jun 26, 2010, at 12:37 AM, rob levy wrote:

>> Rich Hickey's insightful videos have caused me to stop
>> writing loops whenever possible. For me this is the same
>> level of "thinking-change" that happened when I moved to
>> using "Structured Programming" rather than GOTO (in Fortran).
>> Rich needs to write a paper called
>>  "Loops considered harmful"
>> 
> 
> That is a great thing, I like that about both Common Lisp and Clojure.  
> Compare with Perl or even Python; you can use map/grep, list comprehensions 
> etc some of the time but not all of the time.  I Lisp it's always possible to 
> that in a neat way I think.  I know there is a loop macro in CL, which I'm 
> sure can cause many people to just write in some other language's idiom 
> instead of the native one.

You can use Perl's map/grep pretty much anywhere, though they're not as nice to 
use because the language is a mess (albeit more functional than Python). I, 
too, have found myself using fewer and fewer explicit loops as time goes on, 
starting with a revelation about the versatility of map while I was still 
living in Perlistan. I haven't used a single loop statement yet in Clojure, and 
I doubt I will ever do so except for performance reasons.

-- 
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

Reply via email to