Node:SRFI-4 - Read Syntax, Next:SRFI-4 - Procedures, Up:SRFI-4
Homogeneous numeric vectors have an external representation (read
syntax) similar to normal Scheme vectors, but with an additional tag
telling the vector's type.
#u16(1 2 3)
denotes a homogeneous numeric vector of three elements, which are the
values 1, 2 and 3, represented as 16-bit unsigned integers.
denotes a vector of two elements, which are the values 3.1415 and 2.71, represented as floating-point values of 64 bit precision.
Please note that the read syntax for floating-point vectors conflicts
with Standard Scheme, because there
#f is defined to be the
literal false value. That means, that with the loaded SRFI-4 module,
it is not possible to enter some list like
and hope that it will be parsed as a three-element list with the
#f and 3. In normal use, this should be no
problem, because people tend to terminate tokens sensibly when writing