Kevin Smith (2014-08-11T14:05:07.000Z)
>
>
> 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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140811/0a7ab768/attachment.html>
domenic at domenicdenicola.com (2014-08-18T18:38:35.554Z)
> Turns out, yes: you can do it by constructing a graph of combinators,
> with normal method syntax.  So you can do:
>
> ```js
> 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?