On Tue, 14 May 2013 18:21:53 -0400, John Cowan <co...@mercury.ccil.org> wrote:
> Well, Scheme does have loops too, though not yet
> standardized, notably SRFI 42 Eager Comprehensions at
> <http://srfi.schemers.org/srfi-42/srfi-42.html>, Riastradh's version of
> foof-loop at <http://mumble.net/~campbell/scheme/foof-loop.txt>,
> and Alex Shinn's version of foof-loop at
> <https://chibi-scheme.googlecode.com/hg/lib/chibi/loop/loop.scm>.
> R7RS-large will have a loop library, probably one of these three.
> Alex also has a great article on various loop macros, with examples,
> at <http://groups.google.com/group/comp.lang.scheme/msg/60dcac5ea812398>.

Thanks for the excellent pointers!

The great article on various loop macros provides evidence for my point:
the Common Lisp loop construct is *not* copied by other loop constructs.
As the article notes, "It uses a keyword syntax which for simple examples makes 
it
look like broken English (this is a plus or minus, depending on who
you ask)."

All of the other loop constructs create (sub)lists for sub-constructs, which
sweet-expressions handle very nicely.  The Common Lisp one is weird in having
a varying number of terms, all at the SAME list level... and that's the one that
is awkward when you try to have indentation processing active.
But once you surround it with (...) - which of course is what it was designed 
for -
it's just fine.  So, the concern I had with sweet-expressions and Common Lisp 
loop
doesn't seem so bad, on second view.

--- David A. Wheeler

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to