Re: [Hecl-devel] New command strreplace
Brought to you by:
davidw
From: Wolfgang S. K. <wol...@da...> - 2008-02-01 06:48:47
|
David Welton wrote: > I added a new command, strreplace. I don't like the name, much; > better ones are welcome. Actually, one thing to do my be to swap out > strrep to strrepeat. I doubt the existing Hecl codebase is so vast > that that command wouldn't be easy to swap out, but if I can avoid it > I will. strmap is another possibility, but I don't like that much > either. > What about grouping all the string commands into one, so we have string replace str ... string upcase str string index str pos string whatever args ... This reduces the number of commands and does not clobber the namespace and it reduces the number of instances of the command class. And yes, I deem the codebase small enough to accept the changes. -- Wolfgang Kechel mailto:wol...@da... data2c GmbH http://www.data2c.com Bierstadter Straße 7 Fax: +49-(0)611-1731-31 D-65189 Wiesbaden Phone: +49-(0)611-1731-611/+49-(0)174-3454260 |