SRFI 130 - "span" prefix
Per Bothner
(04 Dec 2015 03:34 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(04 Dec 2015 15:54 UTC)
|
Re: SRFI 130 - "span" prefix
Per Bothner
(04 Dec 2015 16:10 UTC)
|
Re: SRFI 130 - "span" prefix
taylanbayirli@xxxxxx
(04 Dec 2015 16:49 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(05 Dec 2015 07:05 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(06 Dec 2015 06:44 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(04 Dec 2015 18:49 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(05 Dec 2015 07:06 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(05 Dec 2015 07:21 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(05 Dec 2015 16:51 UTC)
|
Re: SRFI 130 - "span" prefix
Per Bothner
(05 Dec 2015 17:20 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(05 Dec 2015 17:39 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(05 Dec 2015 20:00 UTC)
|
Re: SRFI 130 - "span" prefix
Alex Shinn
(04 Dec 2015 16:52 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(04 Dec 2015 20:27 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(07 Dec 2015 00:02 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(07 Dec 2015 07:57 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(07 Dec 2015 13:09 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(06 Dec 2015 02:32 UTC)
|
Re: SRFI 130 - "span" prefix
Alex Shinn
(07 Dec 2015 19:26 UTC)
|
Re: SRFI 130 - "span" prefix
John Cowan
(07 Dec 2015 19:48 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(07 Dec 2015 20:08 UTC)
|
Re: SRFI 130 - "span" prefix John Cowan (07 Dec 2015 20:25 UTC)
|
Re: SRFI 130 - "span" prefix
Shiro Kawai
(07 Dec 2015 20:44 UTC)
|
Shiro Kawai scripsit: > - For such text manipulation library, I'd like to have things like these: > (span-replace span span2 from to) - replace span's range between from > and to with span2, from and to are cursors. No need for ''from'' and to, really. Just append everything before from, the replaced subspan, and everything after ''to''. > Curiously, srfi-13 has string-replace but srfi-130 doesn't. Why? An oversight. I'll add it back. > (span-substitute span pattern replacement) - replace occurrence of > pattern span by replacement span It's omitted on purpose, as I didn't want to make this library dependent on a regex library. > - Given on the cheap concatenation, span-join may be unnecessary, for > making interleaved list and span-concatenate can be just about as > efficient. Yes, the purpose of -join is primarily convenience, not efficiency. Inserting spaces or commas between items in a list is something that's frequently done. > - I doubt individual character-level operations such as -filter, -remove, > -partition is as useful in the context of high-level text manipulation. I actually doubt they are useful at all, since they basically treat strings and spans as character bags. That may make some sense for strings because of their literal form and typically compact representation, but not really for spans. I'll remove them from the next draft. -- John Cowan http://www.ccil.org/~cowan xxxxxx@ccil.org What asininity could I have uttered that they applaud me thus? --Phocion, Greek orator