Good day.
Please find attached a patch to make Parenscript's MAKE-ARRAY accept a
single dimension argument, plus at most one of the keyword arguments
INITIAL-CONTENTS or :INITIAL-ELEMENT (plus, optionally, an :ELEMENT-TYPE,
which is silently ignored). For reverse compatiblity, any sequence of
arguments to MAKE-ARRAY which does not fit the above convention, shall be
treated the same as before, that is, formatted as arguments to new Array().
The rationale for the changes is to improve interoperability between PS and
Lisp proper. At present, initializing array elements to anything other
than the default value (which, in Lisp, is implementation-dependent)
requires writing a user-side loop over the array.
A couple of unit tests are included in the patch.
Yours,
— B. Smilga.