From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: make-vector documentation is wrong Date: Fri, 15 May 2020 09:49:12 +0300 Message-ID: <83zha93d7b.fsf@gnu.org> References: <0430a770-2bb8-2d46-9b28-420c8a6e0a24@dancol.org> <5bcc3508-9d65-c5b4-255e-898f8e1dc3c1@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14144"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dancol@dancol.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 15 08:50:13 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZUAe-0003Yf-GY for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 08:50:12 +0200 Original-Received: from localhost ([::1]:47918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZUAb-0002D8-Jh for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 02:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZU9v-0001R1-8M for emacs-devel@gnu.org; Fri, 15 May 2020 02:49:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52179) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZU9u-00079O-0a; Fri, 15 May 2020 02:49:26 -0400 Original-Received: from [176.228.60.248] (port=4884 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZU9t-00014i-AL; Fri, 15 May 2020 02:49:25 -0400 In-Reply-To: <5bcc3508-9d65-c5b4-255e-898f8e1dc3c1@cs.ucla.edu> (message from Paul Eggert on Thu, 14 May 2020 19:46:09 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250353 Archived-At: > From: Paul Eggert > Date: Thu, 14 May 2020 19:46:09 -0700 > Cc: Emacs developers > > (make-string 0 0), (make-list 0 0), (vector), and (list) all have the property > that (make-vector 0 0) does - that is, each call returns the same empty object > each time. I imagine that make-vector was implemented to be consistent with the > other functions - at least, this behavior appears to be a conscious decision > rather than accidental. So it may make sense to change these functions' > documentation instead of their implementation's longstanding behavior. I'm fine with documenting this long-standing behavior (although we should think whether this subtle issue should be in the doc strings or only in the ELisp manual).