[r6rs-discuss] [Formal] allow variable-length strings
Jeff Read
bitwize at gmail.com
Wed Mar 21 11:24:09 EDT 2007
On 3/21/07, Jon Wilson <j85wilson at fastmail.fm> 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
More information about the r6rs-discuss
mailing list