Peter Bex scripsit:

> It seems silly to ask the length of a vector that's statically known.

Not at all.  If your program needs a vector of constants, thus:

(define pi-digits #(3 1 4 1 5 9)

then you might want to future-proof the rest of your program against
extending this constant by writing (vector-length pi-digits) rather than
the magic number 6.  This more usually comes up with strings rather than
vectors, but the principle is the same.

-- 
John Cowan          http://www.ccil.org/~cowan        co...@ccil.org
If I have not seen as far as others, it is because giants were standing
on my shoulders.  --Hal Abelson

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to