unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make-vector documentation is wrong
@ 2020-05-15  1:36 Daniel Colascione
  2020-05-15  2:46 ` Paul Eggert
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Colascione @ 2020-05-15  1:36 UTC (permalink / raw)
  To: Emacs developers

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.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-15  9:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15  1:36 make-vector documentation is wrong Daniel Colascione
2020-05-15  2:46 ` Paul Eggert
2020-05-15  2:59   ` Daniel Colascione
2020-05-15  3:19     ` Paul Eggert
2020-05-15  3:41   ` Stefan Monnier
2020-05-15  6:34     ` Paul Eggert
2020-05-15  9:58       ` Eli Zaretskii
2020-05-15  6:49   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).