fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
5 stars 0 forks source link

Unicode text manipulation #127

Open fmease opened 2 years ago

fmease commented 2 years ago

Provide types for UTF-8 encoded strings (currently named Text), strings in the ASCII range (Byte-String maybe) and several “character”-like entities:

All of those types should allow construction via "text" literals (see #126). E.g. Text."test", Char."ä", Scalar."ä". What about normalization? Swift automatically normalizes (literals, any string, …?).