On 3/21/07, Jon Wilson <[EMAIL PROTECTED]> wrote:

Is there any reason to return the unspecified value as opposed to
returning str1 (post-modification)?  It seems that returning str1 would
be more useful to a functional programming style.  Additionally, this
would make it a drop-in replacement for the existing string-append, in
cases where modification of str1 is not harmful.

Additionally, in analogy to the existing string-append, I would move for
string-append! to take many args rather than just 2, modify the first
one to become the concatenation of all of them, and then return the
first one (modified).

Seconded. Your approach also makes `string-append!' more analogous to
`append!' (in those Schemes which implement it; and also SRFI-1).

--Jeff

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

Reply via email to