[r6rs-discuss] perhaps i should be formal, but....

From: MichaelL_at_frogware.com <MichaelL>
Date: Thu Mar 15 20:31:43 2007

> > Note: Perhaps a solution is to have two variants of the procs, one for

> > code points and one for code units. The code units variants would
> > guarantee O(1) and the code point ones wouldn't.
>
> In R5.92RS, Scheme characters are codepoints (or more precisely scalar
> values), not code units.

Right, that's kind of the point; the code unit variants wouldn't return
characters.

The other ideas on the table seem to be UCS-4 strings or O(n) string-ref
for UTF-8/UTF-16 strings. O(n) string-ref would make something as simple
as searching for a substring in a string rather slow. And there would be
no standard way of making it faster.
Received on Thu Mar 15 2007 - 20:31:10 UTC

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