[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SRFI 121: Generators

This page is part of the web mail archives of SRFI 121 from before July 7th, 2015. The new archives for SRFI 121 contain all messages, not just those from before July 7th, 2015.



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        cowan@xxxxxxxx
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