type
string
string
string is an immutable string of bytes. Strings are true values: + concatenates two of them and == / != compare them by content, not by pointer, so "go" + direction == "goleft" behaves as written. Index a single byte with text[index] (an int code point), take a fresh substring with text[start..end], and measure the byte length with len(text). The readable way to build one is backtick interpolation — ` score: {score} — which stringifies each {…}` hole and concatenates.
Example
let player_name: string = "Ada"
let greeting: string = `hello {player_name}, score {score}`
if player_name == "Ada" { Screen.status(greeting) }