Hello!
Mark H Weaver writes:
> I'm aware that this proposal will be very controversial, but starting in
> Guile 2.2, I think we ought to consider storing strings internally in
> UTF-8, as is done in Gauche.
I don’t think so.
Thanks,
Ludo’.
Hello!
Mark H Weaver 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}.
I agree, and we should encourage this. However...
I find Cowan’s proposal for string iteration
l...@gnu.org (Ludovic Courtès) writes:
> I find Cowan’s proposal for string iteration and the R6RS editors
> response interesting:
>
> http://www.r6rs.org/formal-comments/comment-235.txt
Cowan was proposing a complex new API. I am not, nor did Gauche.
An efficient implementation of string ports
> From:Mark H Weaver
>
> l...@gnu.org (Ludovic Courtès) writes:
> > I find Cowan’s proposal for string iteration and the R6RS editors
> > response interesting:
> >
> > http://www.r6rs.org/formal-comments/comment-235.txt
>
> Cowan was proposing a complex new API. I am not, nor did Gauche.
> A
l...@gnu.org (Ludovic Courtès) writes:
> I also think strings should remain what they currently are, with O(1)
> random access.
I just realized that it is possible to implement O(1) accessors for
UTF-8 backed strings.
The simplest solution is to break the stringbuf into chunks, where each
chunk h
On Sun, Mar 13, 2011 at 1:05 PM, Mark H Weaver wrote:
> l...@gnu.org (Ludovic Courtès) writes:
>> I also think strings should remain what they currently are, with O(1)
>> random access.
>
> I just realized that it is possible to implement O(1) accessors for
> UTF-8 backed strings.
It's possible w