RFC: Unicode Support
~TODO~
As a question, I'm assuming when you say unicode support you mean UTF-8? As there are several UTF formats, UTF-8 being the most common.
UTF-8, UTF-16, UTF-32 and UTF-64.
typedef [u8] as str8
typedef [u16] as str16
typedef [u32] as str32
typedef [u64] as str64
alias str8 as str
@Qix- Sweet. That certainly will be nice, having full UTF8-64 support.
@Polygn yep see the updated #3 for why the typedef and alias keywords are how they are in the above comment.
@Qix- ahhh I see. So alias "renames" but without the copy of the original type, typedef copies the original type and renames. I quite like that because using alias could save bit space where needed.
typedef creates a new type out of an existing type. alias just creates an alias for a type.
You can think of it like this:
typedef Foo as Bar
class Bar : private Foo {};
and
alias Foo as Bar
#define Bar Foo