[Top][All Lists]
[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.)
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, (continued)
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Tassilo Horn, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Lars Magne Ingebrigtsen, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Tassilo Horn, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Pascal J. Bourguignon, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Pascal J. Bourguignon, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Stefan Monnier, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?,
Lennart Borgman <=
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Lennart Borgman, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Andreas Schwab, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Juanma Barranquero, 2012/07/16