[r6rs-discuss] Stateful codecs and inefficient transcoding

From: Per Bothner <per>
Date: Tue Oct 31 19:56:31 2006

John Cowan wrote:
> William D Clinger scripsit:
>> Should the Scheme community agree that this perceived
>> requirement [of mixing text and binary] should be dropped ...
>
> I believe it should be dropped: it complicates the general
> system in favor of a special case which should be handled
> by using the R6RS library for binary input and doing one's
> own decoding. It is far more important to be able to
> handle encodings in common use than it is to handle
> mixed binary/textual encoding.

Alternatively, I believe 99% of the "need" for mixing text and binary
would be covered by support for:
* switching from binary to text;
* switching from UTF-8 to binary;
* and nothing else.

Also, the default/initial text encoding should be defined by
the locale/implementation, and not required to be UTF-8.
-- 
	--Per Bothner
per_at_bothner.com   http://per.bothner.com/
Received on Tue Oct 31 2006 - 19:56:48 UTC

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