[Top][All Lists]

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

Re: behaviour change in cl-subseq

From: Phillip Lord
Subject: Re: behaviour change in cl-subseq
Date: Fri, 07 Aug 2015 15:00:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Leo Liu <address@hidden> writes:

> On 2015-08-06 17:34 +0800, Phillip Lord wrote:
>> Fortunately, Tassilo has answered this; I've never used CL.
> I answered it in a hurry before going to work :(
>> I agree that this change is entirely justifiable. I'm generally not a
>> huge fan of silently ignoring inaccurate arguments. If you are happy
>> with the changed interface, then I have no major problem, although it
>> may break packages besides mine.
> The old behaviour was odd and inconsistent (try it on []).
>> Do you mind if I patch the docstrings, though?
> Not at all.

Was working through this, and found this behaviour.

;; error
(seq-subseq '() 10 10)

;; nil
(seq-subseq '() -10 -10)

So, a bounding box error when the index is too large, but it is silently
ignored when too low.

Not convinced this makes sense.


reply via email to

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