Sudarshan S Chawathe scripsit:
- It may be useful to allow fewer than two arguments for the string
comparison procedurs (string=?, string<?, etc.), with the
semantics that they return true when invoked with fewer than two
arguments. Such an interpretation may help avoid some
special-casing when using 'apply' with these procedures (e.g., to
check whether all strings in a given list are string=?, when the
list could be empty or a singleton).
That would make the function different from R7RS-small, and would not follow the other (in)equality procedures in various SRFIs. However, it is a reasonable extension that a Scheme might well provide, and if you wanted to make a patch to make it so in the sample implementation, I'd accept it.
- string-drop-while[-right]: In the description, I believe "initial
prefix" should read "initial prefix/suffix" as in the description
for string-take-while[-right]. Also, the next paragraph notes
"different order of arguments" (compared with string-trim[-right])
but it seems like the order is the same and only the number of
required arguments is different.
Fixed.
- It may be useful to include the "Unicode note" from SRFI 13 about
the effects of reversal, as a reminder, in the description of
string-concatenate-reverse.
Fixed, but with different wording.
- string-fill!: The 'fill' argument is marked as optional (differs
from R7RS). If the difference is intentional, then a default
needs to be specified.
Made 'fill' argument mandatory in this SRFI as well as R5/R7RS.
- very minor:
- There is an unfortunate mismatch in the order of arguments of
list-tabulate (SRFI 1) and string-tabulate (SRFI 13), and of
some other similar pairs of analogous procedures. Probably we
are stuck with that mismatch, but a brief note (perhaps in the
4th para of the Specification section, where SRFI 1 is briefly
mentioned) of the difference may help (esp. those who may be
familiar with SRFI 1 and not with SRFI 13).
Added note.
I removed the redundant definitions of string-map, %string-map, and string->vector from portable.scm. I also added a definition of read-string to r7rs-shim.scm (Chicken does not require one, but random non-R7RS implementations do).
If you send your kawa-test file to Arthur, he can add it to the implementation.
--After fixing the Y2K bug in an application:
WELCOME TO <censored>
DATE: MONDAK, JANUARK 1, 1900