[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 Mon, Nov 12, 2012 at 3:43 PM, Per Bothner <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.


Scheme-reports mailing list