Re: Phix language
- Posted by mattlewis (admin) Nov 29, 2011
- 2027 views
Swings and roundabouts I suppose but if pushed I'd have to say adding 8-bit strings to OpenEu would probably not be a good idea, especially so with the extent of the changes it would require.
Yes, my biggest reason against adding a fundamental data type is that so much of euphoria is built around being able to operate on atoms and sequences that you end up touching most of the code just for checking to see what you're dealing with. You also have to deal with converting between them.
How do you handle a 'regular' sequence vs an 8-bit sequence? Like, say, concatenating one with the other?
I used to worry about how big sequences get. And I still get into trouble occasionally. But I've been running 64-bit euphoria for most of this year, and even though sequences are about twice as big as they used to be, I've learned to stop worrying and love the 63-bit integer.
Matt