[plt-scheme] 'unspecified' arguemnt of make-vector

From: Zhu Chongkai (mathematica at citiz.net)
Date: Wed Feb 23 00:11:00 EST 2005

Hi PLTers,

When working on SRFI-43, I found this:

R5RS says:

procedure: (make-vector k)
procedure: (make-vector k fill)

Returns a newly allocated vector of k elements. If a second argument is given, then each element is initialized to fill. Otherwise the initial contents of each element is unspecified.

MzScheme just includes the make-vector function from R5RS. 

Welcome to DrScheme, version 299
Language: Standard (R5RS).
> (make-vector 1 (if #f #f))
> (make-vector 3)
#(0 0 0)

Language: Textual (MzScheme, includes R5RS).
> (make-vector 3)
> (make-vector 1 (void))

Should PLT-Scheme use (void) instead of 0 in the 'unspecified' case?
Or could anyone tell why 0 is better?

Best regards, 
Zhu Chongkai
mathematica at citiz.net

Posted on the users mailing list.