I would love to support unicode!
Since we can't do anything with characters except strings, we may already already be half way there :-)
We could possibly do the full-on Rust approach of using 32 bit characters and UTF8 strings, but the indexing for slices is pretty tricky.
It might be simple enough to expand from the current ASCII to at least allow UTF8, specifically the prefixes to support unicode-16 and unicode-32 values. For strings and slices, we could just ignore the prefixes, i.e. it's up to the user to not split a string in the middle of a unicode-32 character.
We could also adopt the C++ escapes (\u8, \u, \U) for literals (see here) but initialization would have to be into an array/string
I would love to support unicode!
Since we can't do anything with characters except strings, we may already already be half way there :-)
We could possibly do the full-on Rust approach of using 32 bit characters and UTF8 strings, but the indexing for slices is pretty tricky.
It might be simple enough to expand from the current ASCII to at least allow UTF8, specifically the prefixes to support unicode-16 and unicode-32 values. For strings and slices, we could just ignore the prefixes, i.e. it's up to the user to not split a string in the middle of a unicode-32 character.
We could also adopt the C++ escapes (\u8, \u, \U) for literals (see here) but initialization would have to be into an array/string