4 ms·
I still have a soft spot for the Swiss Army Knife of the iteration world - the Common Lisp Loop macro: http://www.gigamonkeys.com/book/loop-for-black-belts.htm
by arethuza 13y ago
I still have a soft spot for the Swiss Army Knife of the iteration world - the Common Lisp Loop macro:
http://www.gigamonkeys.com/book/loop-for-black-belts.html http://www.gigamonkeys.com/book/loop-for-black-belts.html
- protomyth 13y agoMy head hurt after looking at how Icon[1] does looping. 1) http://en.wikipedia.org/wiki/Icon_(programming_language) http://en.wikipedia.org/wiki/Icon_(programming_language)
- arethuza 13y agoThat looks like (ab)using exceptions for normal flow of control!
- lispm 13y agoThen you might like its big brother: iterate. http://common-lisp.net/project/iterate/doc/index.html http://common-lisp.net/project/iterate/doc/index.html ITERATE is more powerful than LOOP and extensible.
- arethuza 13y agoAh 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]
- nickik 13y agoWhat 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.