Skip to content

Unicode support #94

@rcunrau

Description

@rcunrau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions