On 25/08/2009, John Cowan <[email protected]> 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.

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to