Text
Strings
Mew's string type is called string
and is written as text surrounded by quotes.
Strings are represented as UTF-8 under the hood.
"Hello World"
"Hello 🌍"
let text = "Hello World";
String interpolation
let subject = "World";
let text = $"Hello {subject}";
Characters
To represent a single UTF-16 character, there is the char
type.
let space = ' ';
let space : char = 32;