arua-meta icon indicating copy to clipboard operation
arua-meta copied to clipboard

RFC: Unicode Support

Open Qix- opened this issue 9 years ago • 6 comments

~TODO~

Qix- avatar May 31 '16 09:05 Qix-

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.

corbin-r avatar Jun 04 '16 01:06 corbin-r

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- avatar Jun 04 '16 01:06 Qix-

@Qix- Sweet. That certainly will be nice, having full UTF8-64 support.

corbin-r avatar Jun 04 '16 01:06 corbin-r

@Polygn yep see the updated #3 for why the typedef and alias keywords are how they are in the above comment.

Qix- avatar Jun 04 '16 01:06 Qix-

@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.

corbin-r avatar Jun 04 '16 01:06 corbin-r

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

Qix- avatar Jun 04 '16 02:06 Qix-