[r6rs-discuss] [Formal] need make-custom-textual-input-port and make-custom-textual-output-port

From: John Cowan <cowan>
Date: Thu Mar 15 17:16:00 2007

Per Bothner scripsit:

> The procedures make-custom-binary-input-port and
> make-custom-binary-output-port allow one to create custom binary ports.
> However, there seems to be no way to create similar textual ports.
> I guess in theory one might be able to wrap a transcoder around a
> custom binary port but that seems horribly wrong when there is no
> underlying byte stream.

I hadn't thought about this point, but I think you're absolutely right:
custom text ports are essential not only for generic strings, but for
things like pulling an external representation lazily out of a data
structure.

-- 
John Cowan   cowan_at_ccil.org    http://ccil.org/~cowan
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
Received on Thu Mar 15 2007 - 17:15:56 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC