From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error? Date: Tue, 17 Jul 2012 00:32:44 +0200 Organization: GNU Message-ID: <87obnfqqur.fsf@gnu.org> References: <50038E42.1030508@yandex.ru> <87liij3l8f.fsf@kuiper.lan.informatimago.com> <87r4sbeplm.fsf@altern.org> <87hat73g4l.fsf@kuiper.lan.informatimago.com> <87ehobd7zi.fsf@gnu.org> <87629nd7tu.fsf@gnu.org> <87zk6z8p1e.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342477942 10256 80.91.229.3 (16 Jul 2012 22:32:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 22:32:22 +0000 (UTC) Cc: "Pascal J. Bourguignon" , emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 00:32:19 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 1Sqtpx-0006wG-Cn for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 00:32:17 +0200 Original-Received: from localhost ([::1]:47258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqtpw-0004bE-LJ for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 18:32:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqtpu-0004b9-Sl for emacs-devel@gnu.org; Mon, 16 Jul 2012 18:32:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sqtpt-0007H8-PF for emacs-devel@gnu.org; Mon, 16 Jul 2012 18:32:14 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:42003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqtpt-0007H2-Ib for emacs-devel@gnu.org; Mon, 16 Jul 2012 18:32:13 -0400 Original-Received: by wgbez12 with SMTP id ez12so3934917wgb.30 for ; Mon, 16 Jul 2012 15:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references :user-agent:date:message-id:mime-version:content-type; bh=c2lNRWboxHX25eXI0a7B5E6quMDin1WaTKSniZCSQ2k=; b=UdUoUbKZKwX4NjwMQxU4lDOh8HVTZrsgSSKtgFp05vPqRL1bgNrRb/qIquaHLNVst9 gZpFdZAIKFminAtkYOJKR/sFVh5UtMPmokES9WaI8lnczJqzp6rG3tU1C5mGxZiic/zB KA9dRVsVPHo/5XiJ5s0k9x4zOFfVeuLvgYZFKSJihf/8eDjsWxg6ye++VilnIoxhkaC7 /a3vWZRnGVasOEig9ETy+AiDr4u1cRU0f9DZCAFM1LkRO/OlOvpokLiynjGd3XfCNpeN gG+zEShE3NFjLcrqrOFj5+p5wE3sg5yatXi+XDudn0cbsOIWY5OEKMh9TLLic+X1IxiU f4+g== Original-Received: by 10.216.131.170 with SMTP id m42mr43470wei.82.1342477932671; Mon, 16 Jul 2012 15:32:12 -0700 (PDT) Original-Received: from myhost.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id y5sm23771834wiw.9.2012.07.16.15.32.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 15:32:12 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 6977F8207; Tue, 17 Jul 2012 00:32:45 +0200 (CEST) In-Reply-To: <87zk6z8p1e.fsf@zigzag.favinet> (Thien-Thi Nguyen's message of "Mon, 16 Jul 2012 21:49:17 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 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:151695 Archived-At: Thien-Thi Nguyen writes: > Overall, the design principle is that you > want the platform to be firm and the performer flexible, not the > other way around. The audience may be pleased either way, but as > producer, you want the roadies to sleep better lest they revolt... Got it. I'll sleep on this. Now that the social pressure of nice Emacs fellows convinced me there was something wrong in my expectations, I still vote for including `string-head' and `string-tail' (which see). I see two reasons for not including them: one would be because they are useless; the other because they would inevitably make someone request a new argument ERROR to throw an error when the length of the head/tail is bigger than the string... but who would be such a twisted mind? Anyway, no more argument for tonight. -- Bastien