[Scheme-reports] bytevector/string/vector comments Per Bothner (19 Dec 2011 07:29 UTC)
Re: [Scheme-reports] bytevector/string/vector comments Per Bothner (03 Jan 2012 16:27 UTC)
Re: [Scheme-reports] bytevector/string/vector comments John Cowan (03 Jan 2012 17:14 UTC)
Re: bytevector/string/vector comments Arthur A. Gleckler (03 Jan 2012 17:21 UTC)
Re: [Scheme-reports] bytevector/string/vector comments John Cowan (09 Jan 2012 22:25 UTC)
Re: [Scheme-reports] bytevector/string/vector comments Per Bothner (09 Jan 2012 22:57 UTC)
Re: [Scheme-reports] bytevector/string/vector comments John Cowan (10 Jan 2012 00:15 UTC)

[Scheme-reports] bytevector/string/vector comments Per Bothner 19 Dec 2011 07:28 UTC

6.7 String

Should perhaps have string-copy!, presumably compatible with SRFI-13.
(At least if bytevector-vector! is provided.)

string-copy should perhaps have 3-operand option,
compatible with SRFI-13 and vector-copy.

6.8 Vectors

Should perhaps have vector-copy!, presumably compatible with SRFI-43.
(At least if bytevector-vector! is provided.)

6.9 Bytevectors
bytevector-copy-partial
   Should add something like (assuming that is intended):
   It is an error if (< start 0) or (> start end) or
   (> end (bytevector-length bytevector))

Likewise for bytevector-copy-partial!

bytevector-copy-partial should be called bytevector-copy for compatibility
with vector-copy.

The 2-operand bytevector-copy! seems relatively useless.
Note there is no corresponding vector-copy!

Likewise (bytevector-copy-partial! from start end to at) should be
(bytevector-copy! to at from start end) for compatibility with SRFI-43.

Note that the introduction of 6.8 Vectors has 2 paragraphs
starting "Vectors are written using the notation ...".
There are no corresponding paragraphs in 6.9 bytevectors,
but I think there should be.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/

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