In Gleam Strings can be written as text surrounded by double quotes.
They can span multiple lines.
Under the hood Strings are UTF-8 encoded binaries and can contain any valid unicode.
"👩💻 こんにちは Gleam 💫"
Gleam supports common string escape sequences. Here's all of them:
For example to include a double quote (
") character in a string literal it
must be escaped by placing a backslash (
\) character before it.
"Here is a double quote -> \" <-"
Similarly all backslash characters must be escaped:
// A Windows filepath C:\Users\Gleam "C:\\Users\\Gleam" // A Decorative border /\/\/\/\ "/\\/\\/\\/\\"