emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-vector documentation is wrong


From: Daniel Colascione
Subject: make-vector documentation is wrong
Date: Thu, 14 May 2020 18:36:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

make-vector claims to "[r]eturn a newly created vector of length LENGTH", but we always return a singleton when asked to allocate a vector of length zero --- that is, (eq (make-vector 0 nil) (make-vector 0 nil)). Is this behavior necessary? Is it contractual? We should fix either the docstring or the behavior of make-vector, and the latter seems better to me because it reduces the number of special cases in the system.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]