Comprehensions, Where Art Thou?

Kevin Smith zenparsing at
Mon Aug 11 07:05:07 PDT 2014

> Turns out, yes: you can do it by constructing a graph of combinators,
> with normal method syntax.  So you can do:
>   var sequence = iterable.lazy().if(somePredicate)

That makes sense, but are comprehensions in any way future-hostile to this
approach?  My impression is that Python programmers find comprehensions
more "approachable" than itertools-style programming.  Although the
combinator approach is obviously more extensible and general,
comprehensions seem better suited to some cases and skill levels.  Is there
any reason that we can't have both?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list