[r6rs-discuss] [Formal] need make-custom-textual-input-port and
cowan at ccil.org
Thu Mar 15 17:15:56 EDT 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
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
More information about the r6rs-discuss