Strings
- Posted by Matt Lewis <matthewwalkerlewis at ?mail.c?m> May 29, 2008
- 684 views
Kat wrote: > > Eu doesn't have a string type, there is no string in Eu. They are sequences, > where every 8bit character takes up 32bits. And you are adding a function that > replaces 3 whole lines of code that do the same thing, a trivial thing, while > important stuff doesn't get added. This is something that seems like it should be trivial, but isn't, given the design of euphoria. Adding a new primitive would require changes all over the place (hundreds of places, easily). We'd probably have to redo some of the test macros, and I suspect that we'd lose a lot of the current speed of euphoria. If someone can figure out an easy way to do this, I suspect it'd get into the language pretty quickly. Of course, that ignores the prospect of Unicode, which is a whole 'nother can of worms, and also something that will require some drastic recoding in the back end, though due to the way that sequences are implemented, probably none in the front end. Matt