This page is part of the web mail archives of SRFI 118 from before July 7th, 2015. The new archives for SRFI 118 contain all messages, not just those from before July 7th, 2015.
On 05/08/2015 12:33 AM, Shiro Kawai wrote:
Ok then, how about adding a note in string-replace! section, something like this? Note: Srfi-13 has a nondestructive version, string-replace, which takes the arguments in the following order: (string-replace dst src dst-start dst-end [src-start [src-end]]) We adopt a different argument order here to be consistent to string-copy!, and existing string-replace! implementations.
Sounds reasonable. See attached diff. Anything else before we declare it final? -- --Per Bothner per@xxxxxxxxxxx http://per.bothner.com/
--- srfi-118-2015-4-18.html 2015-05-09 15:28:01.713557770 -0700 +++ srfi-118.html 2015-05-09 15:33:24.377284119 -0700 @@ -20,7 +20,7 @@ <body> <div class="title"> -<H1>Title</H1> +<h1>Title</h1> Simple adjustable-size strings </div> @@ -193,6 +193,19 @@ When <var>value</var> is a string then <code>(string-append! <var>dst</var> <var>value</var>)</code> is equivalent to <code>(string-replace! <var>dst</var> (string-length <var>dst</var>) (string-length <var>dst</var>) <var>value</var>)</code>. +<p> +<em>Note:</em> +<a href="http://srfi.schemers.org/srfi-13/srfi-13.html">Srfi-13</a> has +a nondestructive version, <code>string-replace</code>, which +takes the arguments in the following order: + +<pre> + (string-replace <var>dst</var> <var>src</var> <var>dst-start</var> <var>dst-end</var> [<var>src-start</var> [<var>src-end</var>]]) +</pre> + +We adopt a different argument order here to be consistent with +<code>string-copy!</code>, and existing <code>string-replace!</code> +implementations. </blockquote> <h1>Implementation</h1>