From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: make-vector documentation is wrong Date: Thu, 14 May 2020 18:36:41 -0700 Message-ID: <0430a770-2bb8-2d46-9b28-420c8a6e0a24@dancol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67854"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 15 03:39:35 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 1jZPK3-000HY8-5G for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 03:39:35 +0200 Original-Received: from localhost ([::1]:55580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZPK1-0007tV-VO for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 21:39:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZPHP-0006VI-3z for emacs-devel@gnu.org; Thu, 14 May 2020 21:36:51 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:35420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZPHN-0006IU-6S for emacs-devel@gnu.org; Thu, 14 May 2020 21:36:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID: Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=8vX5YcVwPsnNK9ewnTQnDoW8VxCJsLKcS2pKIc6trLc=; b=B RzqS0bORcpCikxMVhmTXwuz4YmT+wwx5C5geDe7Y/yVkm533FGCF5km/AwNQtK7QLaAw9Dso3BKps ztcW6POlKgkyU8atI7XX7FmMvpV0wegJpp366KKoXXRPLL75AuxMxe4nkRpssy43F1GoZPe6zIAp4 239BoBaci9FsXzxXH2HBAcK209c05K3NbrVhjYhrl+7MKEkCmcTWpM6IvXMwyvxJnw2RwZgS/qIIS zpYkJIRJVVZvJj7hWfjUc5a7inw+6V1l1CPnGTYaMRjKVP1vq2gES0j5yY1Gp57OCt9S6KW6ylzWL fljAZAKRMXnEeopoclwapCFWCqqQRdUBg==; Original-Received: from [2604:4080:1321:9a00:519a:d934:f5c4:db2e] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jZPHG-0005hb-HE for emacs-devel@gnu.org; Thu, 14 May 2020 18:36:42 -0700 Content-Language: en-US Received-SPF: pass client-ip=2600:3c01::f03c:91ff:fedf:adf3; envelope-from=dancol@dancol.org; helo=dancol.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:250309 Archived-At: 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.