values and types
zo / basic
program
fun main() { imu count: int = 42; imu pi: float = 3.14; imu ready: bool = true; imu letter: char = 'z'; imu name: str = "zo"; showln(count); showln(pi); showln(ready); showln(letter); showln(name); }
output
42 3.14 true z zo
This program declares one value per type family. int and float are the defaults you reach for; the sized variants exist for when you need an exact width.
| family | default | sized variants |
|---|---|---|
| signed | int | s8 s16 s32 s64 |
| unsigned | uint | u8 u16 u32 u64 |
| float | float | f32 f64 |
| boolean | bool | |
| text | str | char bytes |
intiss32,uintisu32,floatisf64. Annotate a sized type only when the layout matters — otherwise the defaults are right.