[racket-dev] Short-circuiting comprehensions

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Sep 18 13:00:15 EDT 2012

On Friday, Matthew Flatt wrote:
> 
> Meanwhile, to support breaking after the current element, I'm trying
> out `#:final'. A `#:final' clause is like `#:break', except that it
> ends the loop after the next run of the body. [...]

(When I first saw this, I thought that it was a kind of a "the value
to return from the loop".  Maybe a minor two word with an added `-if'
will help?)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the dev mailing list.