So s[0] type would be a string with a size between 1 and 6 bytes. s[1].addr 
would depend on the byte length of the first codepoint. s.len would not be the 
length in bytes anymore. One would need a new "length" for that? Instead of 
strings + cstring the FFI would need to use seq[char]? But besides that and 
breaking everything. It would need to decode and encode (and check) utf8 
everywhere. Reading and writing strings would not be anymore transparent and 
needed everywhere to specify it's encodings. Does not sound like something I 
want in a systems programming language as standard string type.

Reply via email to