string-cursor-forward/back
Shiro Kawai
(13 Apr 2016 01:25 UTC)
|
Re: string-cursor-forward/back John Cowan (13 Apr 2016 06:28 UTC)
|
Re: string-cursor-forward/back
Alex Shinn
(13 Apr 2016 06:48 UTC)
|
Re: string-cursor-forward/back
Shiro Kawai
(13 Apr 2016 06:53 UTC)
|
Re: string-cursor-forward/back
John Cowan
(13 Apr 2016 13:28 UTC)
|
Re: string-cursor-forward/back
Per Bothner
(16 Apr 2016 03:53 UTC)
|
General response to Per Bothner
John Cowan
(16 Apr 2016 05:11 UTC)
|
Re: string-cursor-forward/back John Cowan 13 Apr 2016 06:28 UTC
Shiro Kawai scripsit: > It occurred to me that it might be useful that > string-cursor-{forward|back} returns #f (or any other value that is > invalid for cursors and indexes), instead of making it an error. On reflection, I think -forward and -back should just be removed. They are trivial iterations of -next and -prev, they don't exist in Chibi at present, and they have the problem you mention. Unless someone objects, I will remove them before finalization. > Additionally, I noticed that there's no mention that #f can't be a valid > cursor value in the current draft. Cursors should be disjoint to #f, > for string-contains requires so. I've added this to the next draft. -- John Cowan http://www.ccil.org/~cowan xxxxxx@ccil.org The first thing you learn in a lawin' family is that there ain't no definite answers to anything. --Calpurnia in To Kill A Mockingbird