From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fix nreverse Date: Tue, 20 May 2014 22:53:16 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400640823 17940 80.91.229.3 (21 May 2014 02:53:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2014 02:53:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 21 04:53:36 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wmwet-0000RM-Mi for ged-emacs-devel@m.gmane.org; Wed, 21 May 2014 04:53:35 +0200 Original-Received: from localhost ([::1]:56470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmwet-0004Ac-8N for ged-emacs-devel@m.gmane.org; Tue, 20 May 2014 22:53:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmwej-0004AS-Pk for emacs-devel@gnu.org; Tue, 20 May 2014 22:53:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmwec-00018E-55 for emacs-devel@gnu.org; Tue, 20 May 2014 22:53:25 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:58198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmwec-00018A-0f for emacs-devel@gnu.org; Tue, 20 May 2014 22:53:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVPO+KQe/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVPO+KQe/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="63473898" Original-Received: from 206-248-164-30.dsl.teksavvy.com (HELO pastel.home) ([206.248.164.30]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 May 2014 22:53:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id F2EA3600DB; Tue, 20 May 2014 22:53:16 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Wed, 21 May 2014 10:20:21 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171977 Archived-At: > I find the decision to leave out strings in nreverse inconvenient. Why > don't we dispatch to reverse when SEQ is string instead of throwing an > error? This would make nreverse and reverse symmetric. I hope "N" mean > we `may' not `must' destructively modify the argument. Objections? I guess it's OK if we change the meaning of nreverse to "may modify destructively", but then please change the docstring to say so, and *generically* (rather than saying explicitly how that's interpreted for each possible type). Stefan