Email list hosting service & mailing list manager


Re: SRFI 121: Generators John Cowan 08 Feb 2015 01:20 UTC

Shiro Kawai scripsit:

> So, instead of putting all those generator-generating procedures,
> we can just focus on those two areas:
>
>   - generator->stream, to convert generator to lazy stream
>     (maybe srfi-41; or will we have another one in R7RS-large?)
>   - consumer patterns; generator-for-each, do-generator etc.

I agree these are the most important ones.  However, the generator
operators make it possible to create pipeline operations, as is
common in lazy functional programming languages.  You can't, of
course, argue that any specific operator is necessary.

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
If a soldier is asked why he kills people who have done him no harm, or a
terrorist why he kills innocent people with his bombs, they can always
reply that war has been declared, and there are no innocent people in an
enemy country in wartime.  The answer is psychotic, but it is the answer
that humanity has given to every act of aggression in history.  --Northrop Frye