Christophe Rhodes <csr21@...> writes:
> Stas Boukarev <stassats@...> writes:
>> This warning doesn't seem nice to me:
>> (lambda () (make-array 0 :element-type 'cons))
>> ; in: LAMBDA NIL
>> ; (MAKE-ARRAY 0 :ELEMENT-TYPE 'CONS)
>> ; caught STYLE-WARNING:
>> ; The default initial element 0 is not a CONS.
> Why not?
If I want to initialize array later, why should I specify
initial-element which I wouldn't use anyway?
CLHS says, it's undefined to access uninitialized elements, so users
should be prepared to consequences.
With best regards, Stas.