[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] is there a difference between substring and string-copy?
On 11/11/2012 10:52 PM, Alex Shinn wrote:
> On Mon, Nov 12, 2012 at 3:43 PM, Per Bothner <per@x
> <mailto:per@x>> wrote:
> Is there any difference between
> (substring string start end)
> (string-copy string start end)
> I think it's ok to have both - the former for
> historical reasons (compatibility) and the latter
> for regularity. But if so, perhaps there should be
> a note to that effect.
> There's no difference in this example. Note that
> substring requires the start/end parameters whereas
> for string-copy they are optional.
Right, but I think that requires a comment, otherwise
people might be confused why both are there. Perhaps
add something like the following to the description
This is equivalent to (string-copy string start end),
but is provided for backward compatibility and
Scheme-reports mailing list