[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Proposal: improvement of string.gsub()
- From: Asko Kauppi <asko.kauppi@...>
- Date: Wed, 20 Apr 2005 16:35:22 +0300
When would Lua then use these ropes/stringlets? Always after string
And if such a rope was the target of 'tostring' operation (implicitly
or explicitly) it would automatically convert to the corresponding
string (but only then, saving all the interim concats).
20.4.2005 kello 15:38, Javier Guerra kirjoitti:
On Wednesday 20 April 2005 7:16 am, Gavin Wraith wrote:
If the final string is actually needed, that is clearly the way to go.
In practice, it very rarely is needed. Usually the rope/stringle
"stringle" was an extemporization) gets written out to a file. The
is that ropes are very easy to program in Lua. I doubt whether
them at the C level gains one very much.
the biggest gain would be because of transparency. having a good
implementation inside the language would eliminate in a single stroke
the bad usages of strings.