Email list hosting service & mailing list manager

is #f a valid index? Duy Nguyen (29 Jan 2020 12:23 UTC)
Re: is #f a valid index? Arthur A. Gleckler (02 Mar 2020 23:14 UTC)
Re: is #f a valid index? Arthur A. Gleckler (05 Apr 2020 22:45 UTC)
Re: is #f a valid index? John Cowan (25 Jun 2020 21:20 UTC)
Re: is #f a valid index? Alex Shinn (25 Jun 2020 23:37 UTC)
Re: is #f a valid index? John Cowan (25 Jun 2020 23:47 UTC)
Re: is #f a valid index? Alex Shinn (26 Jun 2020 00:23 UTC)
Re: is #f a valid index? John Cowan (26 Jun 2020 01:00 UTC)
Re: is #f a valid index? Arthur A. Gleckler (25 Jun 2020 23:57 UTC)
Re: is #f a valid index? Duy Nguyen (29 Jun 2020 09:13 UTC)
Re: is #f a valid index? Arthur A. Gleckler (29 Jun 2020 14:39 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 08:59 UTC)
Re: is #f a valid index? Alex Shinn (30 Jun 2020 09:18 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 09:25 UTC)
Re: is #f a valid index? Marc Nieper-Wißkirchen (30 Jun 2020 09:35 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 09:42 UTC)
Re: is #f a valid index? Marc Nieper-Wißkirchen (30 Jun 2020 09:47 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 09:52 UTC)
Re: is #f a valid index? Marc Nieper-Wißkirchen (30 Jun 2020 10:01 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 10:11 UTC)
Re: is #f a valid index? Duy Nguyen (30 Jun 2020 09:37 UTC)
Fwd: is #f a valid index? Arthur A. Gleckler (01 Jul 2020 20:22 UTC)
Re: is #f a valid index? Arthur A. Gleckler (14 Sep 2020 15:45 UTC)

is #f a valid index? Duy Nguyen 29 Jan 2020 12:22 UTC

srfi-130-test.scm has this code

(or (eqv? #f
          (string-cursor->index "abcdeffffoo"
                                (string-contains "abcdeffffoo" "efffoo")))
    (fail 'string-contains))

where string-contains returns #f. My interpretation of the srfi is
string-cursor->index only lets indexes through besides cursors, so if
it works in this case (by design) then #f has to be a valid index?

The alternative is of course simpler, the test is wrong (because the
reference implementation lets anything through) and
string-cursor->index should not be called here. I tried it out on
chibi, string->cursor->index there does not accept #f either.
--
Duy