Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Fri, Jan 30, 2009 at 02:08:24PM -0800, Bill Ward wrote: > Or String::Substrate? The meaning of "substrate" doesn't really fit > here but it's so close to SubStrAttr that I bet you could get away > with it, with a suitable comment explaining the name :) I can't help thinking we're getting a bit

Re: RFC: String::Tagged

2009-01-30 Thread Bill Ward
On Fri, Jan 30, 2009 at 2:07 PM, Bill Ward wrote: > On Fri, Jan 30, 2009 at 2:04 PM, David Nicol wrote: >> On Fri, Jan 30, 2009 at 2:46 PM, Paul LeoNerd Evans >> wrote: >>> On Fri, Jan 30, 2009 at 02:00:13PM -0600, David Nicol wrote: there is also intersection with the concept of "ropes" ra

Re: RFC: String::Tagged

2009-01-30 Thread Bill Ward
On Fri, Jan 30, 2009 at 2:04 PM, David Nicol wrote: > On Fri, Jan 30, 2009 at 2:46 PM, Paul LeoNerd Evans > wrote: >> On Fri, Jan 30, 2009 at 02:00:13PM -0600, David Nicol wrote: >>> there is also intersection with the concept of "ropes" rather than >>> "strings" as I understand the term, >> >> A

Re: RFC: String::Tagged

2009-01-30 Thread David Nicol
On Fri, Jan 30, 2009 at 2:46 PM, Paul LeoNerd Evans wrote: > On Fri, Jan 30, 2009 at 02:00:13PM -0600, David Nicol wrote: >> there is also intersection with the concept of "ropes" rather than >> "strings" as I understand the term, > > A rope is a data structure designed to make string concat an O(

Re: RFC: String::Tagged

2009-01-30 Thread Bill Ward
On Fri, Jan 30, 2009 at 12:45 PM, Paul LeoNerd Evans wrote: > On Fri, Jan 30, 2009 at 10:11:33AM -0800, Bill Ward wrote: >> > String::Overlay >> > String::Overlaid >> > String::Overlays >> I think Overlain may be more grammatical than Overlaid > > Overlaid, Overlain... One of those annoying cen

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Fri, Jan 30, 2009 at 02:00:13PM -0600, David Nicol wrote: > there is also intersection with the concept of "ropes" rather than > "strings" as I understand the term, A rope is a data structure designed to make string concat an O(1) operation, where you store a tree, or a linked list of substring

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Fri, Jan 30, 2009 at 10:11:33AM -0800, Bill Ward wrote: > > String::Overlay > > String::Overlaid > > String::Overlays > I think Overlain may be more grammatical than Overlaid Overlaid, Overlain... One of those annoying centuries-old legacies of languages. Seems Perl isn't the only language

Re: RFC: String::Tagged

2009-01-30 Thread David Nicol
there is also intersection with the concept of "ropes" rather than "strings" as I understand the term,

Re: RFC: String::Tagged

2009-01-30 Thread Bill Ward
On Fri, Jan 30, 2009 at 10:07 AM, Paul LeoNerd Evans wrote: > On Fri, Jan 30, 2009 at 09:15:35AM -0600, Jonathan Rockway wrote: >> * On Fri, Jan 30 2009, Bill Ward wrote: >> I agree here. There is prior art for calling these "overlays": >> >> http://www.gnu.org/software/emacs/elisp/html_node/Over

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Fri, Jan 30, 2009 at 09:15:35AM -0600, Jonathan Rockway wrote: > * On Fri, Jan 30 2009, Bill Ward wrote: > I agree here. There is prior art for calling these "overlays": > > http://www.gnu.org/software/emacs/elisp/html_node/Overlays.html Ah; would this suggest something like these? String::

Re: RFC: String::Tagged

2009-01-30 Thread Jonathan Rockway
* On Fri, Jan 30 2009, Bill Ward wrote: > On Fri, Jan 30, 2009 at 2:32 AM, Paul LeoNerd Evans > wrote: >> On Thu, 29 Jan 2009 16:57:42 -0800 >> Bill Ward wrote: >> >>> Why just strings? Why not scalars? >> >> Because only strings have character positions. >> > I must confess I didn't read your d

Re: RFC: String::Tagged

2009-01-30 Thread Bill Ward
On Fri, Jan 30, 2009 at 2:32 AM, Paul LeoNerd Evans wrote: > On Thu, 29 Jan 2009 16:57:42 -0800 > Bill Ward wrote: > >> Why just strings? Why not scalars? > > Because only strings have character positions. > > Perhaps the description isn't clear enough - the string is the thing that > has tags.

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Fri, 30 Jan 2009 09:50:21 +0100 Elizabeth Mattijsen wrote: > Without having looked at implementation, Ah; I purposely didn't include that because it isn't finished in some parts - I wanted an idea of what people thought of the interface first, I can hack up those ideas behind the method name

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Thu, 29 Jan 2009 21:45:18 -0500 Ryan Voots wrote: > I don't know how you would feel about this but what about also > overloading the stringification of the object so that one could use the > built in C also? Ohyes, that sounds useful. I didn't have anything else in mind for stringification,

Re: RFC: String::Tagged

2009-01-30 Thread Paul LeoNerd Evans
On Thu, 29 Jan 2009 16:57:42 -0800 Bill Ward wrote: > Why just strings? Why not scalars? Because only strings have character positions. Perhaps the description isn't clear enough - the string is the thing that has tags. Tags are name/value pairs that apply to some substring range of positions

Re: RFC: String::Tagged

2009-01-30 Thread Elizabeth Mattijsen
At 8:43 AM + 1/30/09, Paul LeoNerd Evans wrote: I find myself requiring an object to store a text string, with ways to throw markup or presentation attributes around it, but in such a way that they're easy to edit and change separately from the string data. I.e. the usual embedded HTML / ANSI