[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)
and
   (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.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports