Re:Philosophy and "for" loops — more from Go and Rust
by lispm on Thursday July 11, 2013 @11:45AM
(#6026768)
Then you might like its big brother: iterate.
http://common-lisp.net/project/iterate/doc/index.html
ITERATE is more powerful than LOOP and extensible.
Re:Philosophy and "for" loops — more from Go and Rust
by arethuza on Thursday July 11, 2013 @12:18PM
(#6027008)
Ah yes, in describing LOOP:
"one often has to consult the manual to recall lesser-used aspects of the strange syntax"
Guess where my copy of CLTL2 falls open at?
[Unfortunately, it's a long time since I did much CL development]
Re:Philosophy and "for" loops — more from Go and Rust
by protomyth on Thursday July 11, 2013 @10:42AM
(#6026292)
My head hurt after looking at how Icon[1] does looping.
Re:Philosophy and "for" loops — more from Go and Rust
by arethuza on Thursday July 11, 2013 @10:47AM
(#6026333)
That looks like (ab)using exceptions for normal flow of control!
Re:Philosophy and "for" loops — more from Go and Rust
by coldtea on Thursday July 11, 2013 @11:54PM
(#6030828)
It's only "abusing" if it's not idiomatic.
Re:Philosophy and "for" loops — more from Go and Rust
by arethuza on Friday July 12, 2013 @05:11AM
(#6031695)
Yes, but I have seen production Java code that used exceptions to return values from methods as part of normal execution - which is what it reminded me of and that most certainly was abusing :-)
Re:Philosophy and "for" loops — more from Go and Rust
by nickik on Thursday July 11, 2013 @05:05PM
(#6029223)
What is intressting is that the Loop macro never made it into clojure. There has been some discussion but nobody every fully impmented it.
Also even within CL, there are lots of people who dislike it. Also this is just nice suger, the article was really about using diffrent datatypes.
http://www.gigamonkeys.com/book/loop-for-black-belts.html