>
>
> 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?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to