Re: [Scheme-reports] display should not guarantee termination Per Bothner (23 Nov 2012 16:43 UTC)

Re: [Scheme-reports] display should not guarantee termination Per Bothner 23 Nov 2012 16:38 UTC

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@bothner.com   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports