[r6rs-discuss] [Formal] allow variable-length strings
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
Received on Wed Mar 21 2007 - 11:24:09 UTC
This archive was generated by hypermail 2.3.0
: Wed Oct 23 2024 - 09:15:01 UTC