[r6rs-discuss] [ANN] scheme-reports.org

Vitaly Magerya vmagerya at gmail.com
Tue Aug 25 05:12:32 EDT 2009


On 25/08/2009, John Cowan <cowan at ccil.org> wrote:
> String-ref would just be a degenerate case of substring.

But there would be no `substring'; at least not with integer range,
right? If chars are gone, then `string-length' as well as integer
indexes are also gone. So the general way to decompose a string
would be to use functions that split strings at occurrences
of given substrings (or patterns).

Can you split a string into some logical parts that map to characters
in en-us text, but possibly to other things in other languages?
Are there such splittings that make sense for all languages (locales)?

> Sure.  Don't do it.  :-)  Instead, have a useful set of internal iterators
> over strings that pass substrings to a user-specified function.

Care to design SRFI 100 "Basic string library for a character-less Scheme"?
If this is the right way to go, then I'd prefer to start using it early
to make a good case for such design latter.



More information about the r6rs-discuss mailing list