Hi Mark! I think UTF-8 could be a good plan for 2.1/2.2, but I wanted to make sure we understand what string-ref is good for...
On Sat 12 Mar 2011 00:09, Mark H Weaver <m...@netris.org> writes: > I claim that any reasonable code which currently uses string-ref and > string-set! could be more cleanly written using string ports or > string-{fold,unfold}{,-right}. Folding and unfolding traverses the entire string. Sometimes this is indeed what you want. But sometimes you want to search in a string, roll back and forward, keep pointers to various parts in the string, etc. Integer indices work well as pointers to parts of strings, is what I'm saying here. They are immediate values that can be compared with < and >. Any change to Guile's internal character encoding should not start from the premise that string-ref is obsolete or unimportant, especially considering that there is no other standard "string pointer" mechanism. Regards, Andy -- http://wingolog.org/