[Top][All Lists]

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

Re: Bound index checks in cl-seq functions

From: John Wiegley
Subject: Re: Bound index checks in cl-seq functions
Date: Fri, 14 Apr 2017 15:01:01 -0700
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.2 (darwin)

>>>>> Eli Zaretskii <address@hidden> writes:

>> i am curious if you have any opinion on this thread.  Currently just
>> `cl-subseq' performs the bounding check index.  I don't see a
>> clear reason why just this function do it.
>> Are you in favour or against doing those checks in other functions
>> handling sequences?

> I don't have any firm opinions on this. I do note, however, that your
> motivation for signaling an error was contested. So I wonder whether the
> cause for this is strong enough to make that change. But I'm willing to
> defer to people who use these features more than I do.

I also don't have a strong opinion. Bounds checking is usually helpful, if it
would help those who are using these functions. Otherwise, I wouldn't make the
change "just to make the change", even though it sounds like a good idea.

John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2

reply via email to

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