[r6rs-discuss] Strings

From: Peter Gavin <pgavin>
Date: Thu Mar 22 21:24:27 2007

This comment isn't a reply specifically to the parent, but it applies to the
thread.

Just my 2?:

I'm pretty sure this has been said before, but I personally think the string
API should be representation agnostic. The *character* API should be
implementable as UCS-4. The string API should reflect the list/pair API,
e.g. string-cons, string-car, string-cdr, string-append, etc. Additionally,
"" should be analogous to (). This style of API is already extremely
familiar to scheme users, is easy to implement in terms of both code-point
vectors and UCS-4 vectors, and (as we all know) lends well to functional
programming. The report, could still support string-set!, etc, but note
that they are deprecated (like set-car! etc.), and may be O(N) operations.
I think strings should be immutable, though.

Pete
<pgavin_at_gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r6rs.org/pipermail/r6rs-discuss/attachments/20070322/9eab5645/attachment.html
Received on Thu Mar 22 2007 - 21:23:50 UTC

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