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

Re: [Scheme-reports] display should not guarantee termination

On 11/23/2012 12:52 AM, Alex Shinn wrote:
> I still find this a surprising concept.  Do you have programs
> which currently produce infinite unbounded output intentionally?

Any daemon or server written in a pure functional (lazy) style.

Likewise any Unix-style transducer (pipe) hooked up to unbounded input.

Such a program might have a pure lazy part that produces as a
result a lazy string or list.  Then a small driver part interacts
with the world - and the simplest to do that is to just display
or write[-simple] the result,

This goes beyond R7RS, but I don't think we want to discourage
experimentation with lazy or hybrid lazy/eager programming.
	--Per Bothner
per@x   http://per.bothner.com/

Scheme-reports mailing list