[Cuis-dev] Thoughts about symbols

Andres Valloud ten at smallinteger.com
Fri Nov 29 16:22:00 PST 2024


Why is "sequence of characters" related to whether said sequence is 
"Unicode"?  What does "Unicode" mean: characters, or code points? 
Suppose you only care about image representation.  Do you need a "byte 
string" class and a "small integer string" class for the sake of 
efficiency?  Or is that an issue of encoding that should only be visible 
externally?  And what do those "strings" store, characters or code 
points?  Should the image support denormalized Unicode code point 
sequences, or should it prioritize efficient at:put:?  Who handles 
string encoding, and when?

On 11/29/24 5:14 AM, Luciano Notarfrancesco via Cuis-dev wrote:
> 
> Yes, that’s true, the current design is not wrong. There’s a bit of code 
> duplication, and that led to me think about unifying and generalizing 
> it, and I wanted to know your thoughts. I guess the alternative design 
> would make more sense if the code was triplicated (if there were 3 kinds 
> of symbols), but I don’t see that coming. A third alternative would be 
> to move some methods to CharacterSequence, but I’m not convinced that’s 
> better either.



More information about the Cuis-dev mailing list