- The data type for strings is string. Vala strings are UTF-8 encoded and immutable.
string text = "A string literal";
- string heredoc :
string verbatim = """This is a so-called "verbatim string".
Verbatim strings don't process escape sequences, such as \n, \t, \\, etc.
They may contain quotes and may span multiple lines.""";
- string templates:
int a = 6, b = 7;
string s = @"$a * $b = $(a * b)"; // => "6 * 7 = 42"