From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman 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:28:59 +0200 Message-ID: References: <87fw8smxag.fsf@gnu.org> <877gu4mv85.fsf@gnu.org> <871ukcmb47.fsf@gnu.org> <87hat7bqmh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1342477780 9009 80.91.229.3 (16 Jul 2012 22:29:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 22:29:40 +0000 (UTC) Cc: Bastien , Juanma Barranquero , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 00:29:39 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 1SqtnN-0004Ql-Pp for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 00:29:37 +0200 Original-Received: from localhost ([::1]:46622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqtnN-00048s-20 for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 18:29:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqtnK-00048n-9l for emacs-devel@gnu.org; Mon, 16 Jul 2012 18:29:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqtnJ-0006PS-Et for emacs-devel@gnu.org; Mon, 16 Jul 2012 18:29:34 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:35960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqtnH-0006P1-RJ; Mon, 16 Jul 2012 18:29:32 -0400 Original-Received: by lbjn8 with SMTP id n8so9643260lbj.0 for ; Mon, 16 Jul 2012 15:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=nK01YpIO2IYYO2mhm0AuiIRkYKD7fZeHDwVMpTPSXLU=; b=RWwrv4T5cDV4dZ5cVd/x/MgBqNJcKDjQRD3j/nviizbirzWIJbIzXeyGRt7EgzvzP5 c2UKXLqkm7CsWPf7BG8D+tBfR4XdgciynB97uNwyJUN+SkeA3XaNd9wwYGdTdP6qWWjk mxYH8yEmXTkrDYCoJu9NcPwtlW9fqzBwCEeJDczv5QpOkr8ZNuC7d6Jdwtmvjv1wGcbW yHWCn5iCx89Pg4Cm3QI5Q6hwRFVsdqBg1O/ie6J0DKM0giM7fPm0tGIt658jbQ6uAmRp M/U5+/tHm4VWUKufuIAhrRlfjcvEUKT4THZc22UTUUHJh6gM9J6Lcxta+GRGZ5unOful 5VfQ== Original-Received: by 10.112.82.197 with SMTP id k5mr97789lby.98.1342477770649; Mon, 16 Jul 2012 15:29:30 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Mon, 16 Jul 2012 15:28:59 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 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:151694 Archived-At: On Mon, Jul 16, 2012 at 10:30 PM, Stefan Monnier wrote: >> I see the benefit of having > >> (substring "abc" 0 4) >> => "abc" > >> in terms of simplifying Elisp writing -- and I still fail >> to see the harm (but maybe Pascal will tell me where he has >> been bitten by this.) > > I don't think such a semantics is harmful, indeed. It's just different, > and I don't think this issue affects enough code that it's worth > changing from one to the other, nor is it worth adding a special > argument for it. I really disagree. If someone take the effort to implement the added argument then please accept it as part of Emacs. (If no one does then just let it be.)