variables
zo / basic
program
fun main() { imu language: str = "zo"; mut version: int = 0; version = 1; version += 1; showln(language); showln(version); }
output
zo 2
This program declares two local variables. imu binds an immutable value — once language holds "zo", it can never change. mut binds a mutable value, so version can be reassigned with = or updated in place with a compound operator like +=.
Each binding names its type after the : — str for text, int for a whole number — and the value on the right must match it.
Reach for
imuby default and only usemutwhen a value truly has to change. Immutable-by-default keeps data flow easy to follow.