From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Side effects of `sort' Date: Fri, 02 Mar 2012 15:13:31 +0900 Message-ID: References: <8762eoum93.fsf@schoepe.localhost> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330668892 19712 80.91.229.3 (2 Mar 2012 06:14:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2012 06:14:52 +0000 (UTC) Cc: Dave Abrahams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 07:14:50 2012 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 1S3LlP-0001lt-NW for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2012 07:14:47 +0100 Original-Received: from localhost ([::1]:49814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3LlO-0001J3-SS for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2012 01:14:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3LlM-0001Iu-5m for emacs-devel@gnu.org; Fri, 02 Mar 2012 01:14:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3LlK-0005Gc-Fq for emacs-devel@gnu.org; Fri, 02 Mar 2012 01:14:43 -0500 Original-Received: from relmlor4.renesas.com ([210.160.252.174]:57956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3LlK-0005GA-7F for emacs-devel@gnu.org; Fri, 02 Mar 2012 01:14:42 -0500 Original-Received: from relmlir1.idc.renesas.com ([10.200.68.151]) by relmlor4.idc.renesas.com ( SJSMS) with ESMTP id <0M0800FQWUMPN110@relmlor4.idc.renesas.com> for emacs-devel@gnu.org; Fri, 02 Mar 2012 15:13:37 +0900 (JST) Original-Received: from relmlac1.idc.renesas.com ([10.200.69.21]) by relmlir1.idc.renesas.com (SJSMS) with ESMTP id <0M0800C5KUMP1T90@relmlir1.idc.renesas.com> for emacs-devel@gnu.org; Fri, 02 Mar 2012 15:13:37 +0900 (JST) Original-Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 0C6B48015B; Fri, 02 Mar 2012 15:13:37 +0900 (JST) Original-Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 05F1A80030; Fri, 02 Mar 2012 15:13:37 +0900 (JST) Original-Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id RAC12690; Fri, 02 Mar 2012 15:13:37 +0900 X-IronPort-AV: E=Sophos;i="4.73,516,1325430000"; d="scan'208";a="70831632" Original-Received: from unknown (HELO relay61.aps.necel.com) ([10.29.19.64]) by relmlii2.idc.renesas.com with ESMTP; Fri, 02 Mar 2012 15:13:36 +0900 Original-Received: from dhlpc061 (dhlpc061.dev.necel.com [10.114.98.89]) by relay61.aps.necel.com (8.14.4+Sun/8.14.4) with ESMTP id q226DXlq009636; Fri, 02 Mar 2012 15:13:33 +0900 (JST) Original-Received: by dhlpc061 (Postfix, from userid 31295) id AEB6252E21E; Fri, 02 Mar 2012 15:13:32 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-reply-to: Original-Lines: 14 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-Received-From: 210.160.252.174 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:148872 Archived-At: Stefan Monnier writes: > It just means that `sort' would have > to fiddle not only with `cdr's but also with the `car's. > Not worth the trouble, tho. Also it would make sort inconsistent with other destructive list operators, some of which _can't_ be "fixed". A lisp programmer basically has to learn this pattern eventually. -miles -- Admiration, n. Our polite recognition of another's resemblance to ourselves.