emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?


From: Lennart Borgman
Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?
Date: Tue, 17 Jul 2012 00:28:59 +0200

On Mon, Jul 16, 2012 at 10:30 PM, Stefan Monnier
<address@hidden> 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.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]